Sha256: 40abb2b22a54179676073afce5bd02c911066e8470f7dd921942bea5f0472dff

Contents?: true

Size: 244 Bytes

Versions: 19

Compression:

Stored size: 244 Bytes

Contents

module ActiveMocker

  module ActiveRecord

    module Scope

      def scope(method_name, proc)
        get_named_scopes[method_name] = proc
      end

      def get_named_scopes
        @scope_methods ||= {}
      end

    end

  end

end



Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
active_mocker-1.8.4 lib/active_mocker/active_record/scope.rb
active_mocker-1.8.3 lib/active_mocker/active_record/scope.rb
active_mocker-1.8.2 lib/active_mocker/active_record/scope.rb
active_mocker-1.8.1 lib/active_mocker/active_record/scope.rb
active_mocker-1.8 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.3 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.2 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.1 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.1rc lib/active_mocker/active_record/scope.rb
active_mocker-1.7 lib/active_mocker/active_record/scope.rb
active_mocker-1.7rc2 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.beta3 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.beta2 lib/active_mocker/active_record/scope.rb
active_mocker-1.6.4 lib/active_mocker/active_record/scope.rb
active_mocker-1.7.beta1 lib/active_mocker/active_record/scope.rb
active_mocker-1.6.3 lib/active_mocker/active_record/scope.rb
active_mocker-1.6.2 lib/active_mocker/active_record/scope.rb
active_mocker-1.6.1 lib/active_mocker/active_record/scope.rb
active_mocker-1.6 lib/active_mocker/active_record/scope.rb