lib/generators/dry_crud/templates/app/controllers/list_controller.rb
def models_label(plural = true)
      opts = {:count => (plural ? 3 : 1)}
      opts[:default] = model_class.model_name.human.titleize
      opts[:default] = opts[:default].pluralize if plural

      model_class.model_name.human(opts)
    end
# A human readable plural name of the model.
A human readable plural name of the model.
A human readable plural name of the model .
def models_label(plural = true)
      opts = {:count => (plural ? 3 : 1)}
      opts[:default] = model_class.model_name.human.titleize
      opts[:default] = opts[:default].pluralize if plural
      model_class.model_name.human(opts)
    end
def models_label ( plural = true ) opts = { :count => ( plural ? 3 : 1 ) } opts [ :default ] = model_class . model_name . human . titleize opts [ :default ] = opts [ :default ] . pluralize if plural model_class . model_name . human ( opts ) end
A human readable plural name of the model.
A human readable plural name of the model .
plural