Sha256: dba39dc4f473876e7dde3271a0873e746fb121e8db72e5e8c633fa8816a233f0

Contents?: true

Size: 122 Bytes

Versions: 109

Compression:

Stored size: 122 Bytes

Contents

require 'epitools'

if defined? Rails
  
  class ActiveRecord::Base
    def self.[](n)
      find n
    end
  end
  
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
epitools-0.5.58 lib/epitools/rails.rb
epitools-0.5.57 lib/epitools/rails.rb
epitools-0.5.56 lib/epitools/rails.rb
epitools-0.5.55 lib/epitools/rails.rb
epitools-0.5.54 lib/epitools/rails.rb
epitools-0.5.51 lib/epitools/rails.rb
epitools-0.5.50 lib/epitools/rails.rb
epitools-0.5.49 lib/epitools/rails.rb
epitools-0.5.47 lib/epitools/rails.rb
epitools-0.5.46 lib/epitools/rails.rb
epitools-0.5.45 lib/epitools/rails.rb
epitools-0.5.44 lib/epitools/rails.rb
epitools-0.5.43 lib/epitools/rails.rb
epitools-0.5.42 lib/epitools/rails.rb
epitools-0.5.41 lib/epitools/rails.rb
epitools-0.5.39 lib/epitools/rails.rb
epitools-0.5.38 lib/epitools/rails.rb
epitools-0.5.37 lib/epitools/rails.rb
epitools-0.5.36 lib/epitools/rails.rb
epitools-0.5.35 lib/epitools/rails.rb