Class: Skyline::Content::MetaData::ClassSettings

Inherits:
Field
  • Object
show all
Defined in:
lib/skyline/content/meta_data/class_settings.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Field

#association?, #attribute_name, #attribute_value, #column, from, #hidden_in, #initialize, #inspect, #owner, #owner_class, #plural, #plural_title, #singular, #singular_title, #to_param, #type, #type_cast, #unique_values, #update, #value

Constructor Details

This class inherits a constructor from Skyline::Content::MetaData::Field

Instance Method Details

#klassObject

Klass these ClassSettings belong to



14
# File 'lib/skyline/content/meta_data/class_settings.rb', line 14

def klass; self.owner; end

#plural_labelObject



8
9
10
# File 'lib/skyline/content/meta_data/class_settings.rb', line 8

def plural_label
  plural(self.label,self.klass.to_s.demodulize.underscore.humanize.pluralize)    
end

#singular_labelObject



5
6
7
# File 'lib/skyline/content/meta_data/class_settings.rb', line 5

def singular_label
  singular(self.label,self.klass.to_s.demodulize.underscore.humanize)
end