Skip to content

Commit

Permalink
altered inflector to handle reserve correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stayman committed Jun 16, 2016
1 parent 8b34654 commit de4c0ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/games/human_control.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<% end %>
</table>
<%= link_to "Income Index" , incomes_path(),:class => "button-input" %>
<%= link_to "Add Bonus Reserves", new_reserf_path, :class => 'button-input' %>
<%= link_to "Add Bonus Reserves", new_reserve_path, :class => 'button-input' %>
<%= link_to "Bonus Reserves Index", reserves_path, :class => "button-input" %>
</section>

Expand Down
4 changes: 2 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ default: &default
adapter: postgresql
pool: 5
timeout: 5000
username: zstayman
password:
username: root
password: root

development:
<<: *default
Expand Down
4 changes: 4 additions & 0 deletions config/initializers/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful'
# end

ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'reserve', 'reserves'
end
1 change: 0 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@

create_table "team_roles", force: :cascade do |t|
t.string "role_name"
t.string "role_color"
t.string "role_permissions", default: [], array: true
t.datetime "created_at"
t.datetime "updated_at"
Expand Down

0 comments on commit de4c0ab

Please sign in to comment.