Sha256: 424ffab520a9d22ae305c40f50eb1e678e7aacf529932e1b9ba73a36464396e7

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 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

2 entries across 2 versions & 1 rubygems

Version Path
lazy_model-0.0.6 lib/lazy_model.rb
lazy_model-0.0.5 lib/lazy_model.rb