I need to create a class that represent \"SVN\" inside a module called \"SCM\". But I don\'t know what is the convention when dealing with acronyms in Ruby, and could not fi
Add the following to config/initializers/inflections.rb.
config/initializers/inflections.rb
ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym 'SVN' end
Now running $ rails g model SVN… will create a class named SVN in a file named svn.rb and an associated table svns.
$ rails g model SVN…
SVN
svn.rb
svns