Module: Formtastic::LocalizedString

Included in:
Actions::Base, Helpers::ErrorsHelper, Helpers::InputsHelper, Inputs::Base::Labelling
Defined in:
lib/formtastic/localized_string.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) model_name



4
5
6
# File 'lib/formtastic/localized_string.rb', line 4

def model_name
  @object.present? ? @object.class.name : @object_name.to_s.classify
end