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 13, 2016
1 parent e8e0ca3 commit 507737b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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 @@ -48,7 +48,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: 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

0 comments on commit 507737b

Please sign in to comment.