Module: Kalimba::LocalizedAttributes::ClassMethods

Defined in:
lib/kalimba/localized_attributes.rb

Instance Method Summary collapse

Instance Method Details

#localizable_property?(name) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/kalimba/localized_attributes.rb', line 13

def localizable_property?(name)
  !properties[name][:collection] && properties[name][:datatype] == NS::XMLSchema["string"]
end