Sha256: 15e067a8fddf7d7047c20fc322b030c16e8e430371a420cc11d4c4828508821b
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 Bytes
Contents
require 'active_support' require 'active_support/core_ext/hash' require 'active_record' require 'sakuramochi/version' module Sakuramochi autoload :Configuration, 'sakuramochi/configuration' autoload :Predicate, 'sakuramochi/predicate' autoload :PredicateBuilder, 'sakuramochi/predicate_builder' autoload :Condition, 'sakuramochi/condition' autoload :Relation, 'sakuramochi/relation' def self.config @config ||= Sakuramochi::Configuration.new end def self.configure(&block) yield config end ActiveSupport.on_load(:active_record) do ActiveRecord::Relation.send(:include, Sakuramochi::Relation) ActiveRecord::PredicateBuilder.send(:include, Sakuramochi::PredicateBuilder) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sakuramochi-0.6.0 | lib/sakuramochi.rb |
sakuramochi-0.5.9 | lib/sakuramochi.rb |
sakuramochi-0.5.8 | lib/sakuramochi.rb |
sakuramochi-0.5.7 | lib/sakuramochi.rb |