Sha256: b533fdb15f506c12f6dc658652a445b94c14f02dce3f75c5a50de30f61bf9212
Contents?: true
Size: 518 Bytes
Versions: 19
Compression:
Stored size: 518 Bytes
Contents
module Hobo module Model module Scopes ::ActiveRecord::Associations::Builder::BelongsTo.valid_options << :scope ::ActiveRecord::Associations::Builder::HasMany.valid_options << :scope ::ActiveRecord::Associations::Builder::HasOne.valid_options << :scope def self.included_in_class(klass) klass.class_eval do extend ClassMethods end end module ClassMethods include AutomaticScopes include ApplyScopes end end end end
Version data entries
19 entries across 19 versions & 1 rubygems