Sha256: 82016e75ff2b8d1388c19134953e18466bcd3bc7beef7b2a237bb7dff7952c80
Contents?: true
Size: 591 Bytes
Versions: 8
Compression:
Stored size: 591 Bytes
Contents
require 'active_record' require 'active_support' require 'active_support/core_ext/module/delegation' require File.dirname(__FILE__) + '/lazy_model/lazy_model_support.rb' require File.dirname(__FILE__) + '/lazy_model/lazy_boolean.rb' require File.dirname(__FILE__) + '/lazy_model/lazy_state.rb' module LazyModel def lazy_boolean(attribute) LazyBoolean.new(self, attribute).define_methods end def lazy_state(attribute, enumerables = nil, custom_finders = {}) LazyState.new(self, attribute, enumerables, custom_finders).define_methods end end ActiveRecord::Base.extend LazyModel
Version data entries
8 entries across 8 versions & 1 rubygems