Skip to content

Commit

Permalink
added rule to stop “VCS” looking like “Vcs” in forms
Browse files Browse the repository at this point in the history
Acronym inflections are not supported in this version of Rails – they were added in rails/rails#2029 – so this will not work unless Rails is upgraded.

I haven’t tested this.

Another option is to explicitly write “VCS” in the `f.label` calls in app/views/projects/_form.html.haml . That is less DRY but would work without upgrading Rails.
  • Loading branch information
roryokane committed Jun 18, 2012
1 parent 189dc65 commit 25beda1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/initializers/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end

ActiveSupport::Inflector.inflections do |inflect|
inflect.acronym 'VCS'
end

0 comments on commit 25beda1

Please sign in to comment.