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

Version Path
hobo-2.0.1 lib/hobo/model/scopes.rb
hobo-2.0.0 lib/hobo/model/scopes.rb
hobo-2.0.0.pre10 lib/hobo/model/scopes.rb
hobo-2.0.0.pre9 lib/hobo/model/scopes.rb
hobo-2.0.0.pre8 lib/hobo/model/scopes.rb
hobo-2.0.0.pre7 lib/hobo/model/scopes.rb
hobo-2.0.0.pre6 lib/hobo/model/scopes.rb
hobo-2.0.0.pre5 lib/hobo/model/scopes.rb
hobo-2.0.0.pre4 lib/hobo/model/scopes.rb
hobo-2.0.0.pre3 lib/hobo/model/scopes.rb
hobo-2.0.0.pre2 lib/hobo/model/scopes.rb
hobo-2.0.0.pre1 lib/hobo/model/scopes.rb
hobo-1.4.0.pre8 lib/hobo/model/scopes.rb
hobo-1.4.0.pre7 lib/hobo/model/scopes.rb
hobo-1.4.0.pre6 lib/hobo/model/scopes.rb
hobo-1.4.0.pre5 lib/hobo/model/scopes.rb
hobo-1.4.0.pre4 lib/hobo/model/scopes.rb
hobo-1.4.0.pre3 lib/hobo/model/scopes.rb
hobo-1.4.0.pre2 lib/hobo/model/scopes.rb