module Property
FIXME: we should patch the connection adapters instead of having ‘case, when’ evaluated each time For example: module ActiveRecord
module ConnectionAdapters class MysqlAdapter include Zena::Db::MysqlAdditions end end
end
Constants
- VERSION
Public Class Methods
included(base)
click to toggle source
# File lib/property.rb, line 19 def self.included(base) base.class_eval do include Attribute include Serialization::JSON include Declaration include Dirty include Index end end
validate_property_class(type)
click to toggle source
# File lib/property.rb, line 33 def self.validate_property_class(type) @@validators.each do |validator| return false unless validator.validate(type) end true end
validators()
click to toggle source
# File lib/property.rb, line 29 def self.validators @@validators ||= [] end