Flowdock
method

model_resource_name

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Rails::Generators::NamedBase
model_resource_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 154
        def model_resource_name(prefix: "") # :doc:
          resource_name = "#{prefix}#{singular_table_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.