Sha256: 8c56af15b44e4c34fafb366ad87061395acab350603bb8c159ff54b0e5a555e0

Contents?: true

Size: 99 Bytes

Versions: 10

Compression:

Stored size: 99 Bytes

Contents

class User < ActiveRecord::Base
  scope :with_1, -> { where("#{table_name}.name LIKE '%1%'") }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
prosperity-0.0.11 spec/dummy/app/models/user.rb
prosperity-0.0.10 spec/dummy/app/models/user.rb
prosperity-0.0.9 spec/dummy/app/models/user.rb
prosperity-0.0.8 spec/dummy/app/models/user.rb
prosperity-0.0.7 spec/dummy/app/models/user.rb
prosperity-0.0.6 spec/dummy/app/models/user.rb
prosperity-0.0.5 spec/dummy/app/models/user.rb
prosperity-0.0.4 spec/dummy/app/models/user.rb
prosperity-0.0.3 spec/dummy/app/models/user.rb
prosperity-0.0.2 spec/dummy/app/models/user.rb