Class: Ditz::Component

Inherits:
ModelObject show all
Defined in:
lib/model-objects.rb

Instance Method Summary collapse

Methods inherited from ModelObject

#changed!, #changed?, changes_are_logged, create, create_interactively, #deserialized_form_of, #each_modelobject, field, field_names, from, inherited, #initialize, #inspect, #log, #save!, #serialized_form_of, #to_s, #to_yaml, #to_yaml_type, #unchanged!, yaml_domain, yaml_other_thing

Constructor Details

This class inherits a constructor from Ditz::ModelObject

Instance Method Details

#name_prefixObject



7
# File 'lib/model-objects.rb', line 7

def name_prefix; name.gsub(/\s+/, "-").downcase end