Sha256: 98a44ce1aae88efc81c32ca3f6b4a9d24aad14284c701cf44ec904975a27b858

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'cgi'
require 'active_record'
require 'active_support/concern'
require 'active_support/core_ext/object/to_query'

module ScopedFrom
  
  class << self
    
    def version
      @@version ||= File.read(File.expand_path(File.dirname(__FILE__) + '/../VERSION')).strip.freeze
    end
    
  end
  
end

lib_path = File.expand_path(File.dirname(__FILE__) + '/scoped_from')

require "#{lib_path}/active_record"
require "#{lib_path}/query"

ActiveRecord::Base.send(:include, ScopedFrom::ActiveRecord)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scoped_from-0.6.0 lib/scoped_from.rb
scoped_from-0.5.1 lib/scoped_from.rb
scoped_from-0.5.0 lib/scoped_from.rb
scoped_from-0.5 lib/scoped_from.rb
scoped_from-0.4 lib/scoped_from.rb
scoped_from-0.3 lib/scoped_from.rb
scoped_from-0.2 lib/scoped_from.rb