Sha256: a1c5fd6bf5a8b04346ae010a8884d18b8659d56a8d775d58f345dc6451fa0504
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 Bytes
Contents
module ActiveRecord module Scoping module Named module ClassMethods attr_reader :scope_names alias_method :_scope, :scope def scope(name, body, &block) @scope_names ||= [] _scope(name, body, &block) @scope_names << name end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_hash_relation-1.4.1 | lib/active_record/scope_names.rb |
active_hash_relation-1.4.0 | lib/active_record/scope_names.rb |
active_hash_relation-1.2.0 | lib/active_record/scope_names.rb |