Method: StaticData::Base.model_class

Defined in:
lib/static-data/base.rb

.model_classObject

Returns the model class for this StaticData subclass (which is the class name without the “Static” prefix by default, but can be overridden via set_model_class).



13
14
15
16
# File 'lib/static-data/base.rb', line 13

def self.model_class
  model_class_name = @model_class_name || self.name.sub(/^Static/, '')
  Object.const_get(model_class_name)
end