Sha256: 4b1f77bf6af162cf87dc6be77366e1d5aa77fcca073253534a36de659af0a8d6

Contents?: true

Size: 118 Bytes

Versions: 27

Compression:

Stored size: 118 Bytes

Contents

require 'epitools'

if defined? Rails

  class ActiveRecord::Base
    def self.[](n)
      find n
    end
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
epitools-0.5.136 lib/epitools/rails.rb
epitools-0.5.134 lib/epitools/rails.rb
epitools-0.5.133 lib/epitools/rails.rb
epitools-0.5.131 lib/epitools/rails.rb
epitools-0.5.130 lib/epitools/rails.rb
epitools-0.5.129 lib/epitools/rails.rb
epitools-0.5.128 lib/epitools/rails.rb
epitools-0.5.126 lib/epitools/rails.rb
epitools-0.5.125 lib/epitools/rails.rb
epitools-0.5.124 lib/epitools/rails.rb
epitools-0.5.123 lib/epitools/rails.rb
epitools-0.5.122 lib/epitools/rails.rb
epitools-0.5.121 lib/epitools/rails.rb
epitools-0.5.119 lib/epitools/rails.rb
epitools-0.5.118 lib/epitools/rails.rb
epitools-0.5.116 lib/epitools/rails.rb
epitools-0.5.115 lib/epitools/rails.rb
epitools-0.5.114 lib/epitools/rails.rb
epitools-0.5.113 lib/epitools/rails.rb
epitools-0.5.112 lib/epitools/rails.rb