Module: CouchRest::LocalisedProperties::ClassMethods
- Defined in:
- lib/couchrest_localised_properties.rb
Instance Method Summary collapse
Instance Method Details
#localised_property(name, *options, &block) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/couchrest_localised_properties.rb', line 35 def localised_property(name, *, &block) # Create a normal property p = property(name, *, &block) raise "Localised properties cannot be used with Hashes!" if p.type == Hash # Override the normal methods with special accessors create_localised_property_getter(p) create_localised_property_setter(p) end |