module Relaxo::Model::Properties
Constants
- Required
Handle conversions for standard datatypes.
Public Instance Methods
convert_from_primative(dataset, value)
click to toggle source
# File lib/relaxo/model/properties/attribute.rb, line 115 def convert_from_primative(dataset, value) [true, "on", "true"].include?(value) end
convert_to_primative(value)
click to toggle source
# File lib/relaxo/model/properties/attribute.rb, line 111 def convert_to_primative(value) value ? true : false end