method

model_resource_name

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Rails::Generators::NamedBase
model_resource_name(base_name = singular_table_name, prefix: "") private

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/named_base.rb, line 150
        def model_resource_name(base_name = singular_table_name, prefix: "") # :doc:
          resource_name = "#{prefix}#{base_name}"
          if options[:model_name]
            "[#{controller_class_path.map { |name| ":" + name }.join(", ")}, #{resource_name}]"
          else
            resource_name
          end
        end
Register or log in to add new notes.