Module: Ooor::ReflectionOoor
Overview
Ooor Reflection
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#column_for_attribute(name) ⇒ Object
9 10 11 |
# File 'lib/ooor/reflection_ooor.rb', line 9 def column_for_attribute(name) self.class.columns_hash[name.to_s] end |
#has_attribute?(attr_name) ⇒ Boolean
13 14 15 |
# File 'lib/ooor/reflection_ooor.rb', line 13 def has_attribute?(attr_name) self.class.columns_hash.key?(attr_name.to_s) end |