lib/findable/base.rb in findable-0.1.1 vs lib/findable/base.rb in findable-0.1.2
- old
+ new
@@ -11,12 +11,11 @@
attribute_method_suffix "?"
class << self
## field definitions
- def define_field(attr, options = {})
+ def define_field(attr)
unless public_method_defined?(attr)
- options.symbolize_keys!
define_attribute_methods attr
define_method(attr) { attributes[attr.to_sym] }
column_names << attr.to_sym
end
end