method

singular_name

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Rails::Generators::GeneratedAttribute
singular_name() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/generated_attribute.rb, line 114
      def singular_name
        name.sub(/_id$/, "").singularize
      end
Register or log in to add new notes.