Module: Schema::Associations::Base::ClassMethods
- Defined in:
- lib/schema/associations/base.rb
Overview
no-doc
Instance Attribute Summary collapse
-
#schema_name ⇒ Object
Returns the value of attribute schema_name.
Instance Method Summary collapse
Instance Attribute Details
#schema_name ⇒ Object
Returns the value of attribute schema_name.
13 14 15 |
# File 'lib/schema/associations/base.rb', line 13 def schema_name @schema_name end |
Instance Method Details
#base_schema_class ⇒ Object
19 20 21 |
# File 'lib/schema/associations/base.rb', line 19 def base_schema_class Object.const_get(@base_schema_class_name) end |
#base_schema_class=(kls) ⇒ Object
15 16 17 |
# File 'lib/schema/associations/base.rb', line 15 def base_schema_class=(kls) @base_schema_class_name = kls.name end |
#schema_options ⇒ Object
23 24 25 |
# File 'lib/schema/associations/base.rb', line 23 def base_schema_class.schema[schema_name] end |