Module: DynamicAttributeDeclaration
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/dynamic_attribute_declaration.rb,
lib/dynamic_attribute_declaration/version.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.1.2"
Instance Method Summary collapse
Instance Method Details
#values_for(attr_name) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dynamic_attribute_declaration.rb', line 13 def values_for attr_name if _dynamic_attrs.key?(attr_name) rtn = nil _dynamic_attrs[attr_name].each do |attr| if attr.key?(:values) rtn = attr[:values] end end end rtn end |