method
model_name_from_record_or_class

model_name_from_record_or_class(record_or_class)
public
Hide source
# File actionpack/lib/action_controller/model_naming.rb, line 8 def model_name_from_record_or_class(record_or_class) (record_or_class.is_a?(Class) ? record_or_class : convert_to_model(record_or_class).class).model_name end