Sha256: 61f192aa599bf5494674be32e834d59c2bbf8b83e6e89fbebbd8975df3d4bdd9

Contents?: true

Size: 193 Bytes

Versions: 2

Compression:

Stored size: 193 Bytes

Contents

class Photo < ActiveRecord::Base

  scope :filter, lambda { |filter| where('LOWER(name) LIKE :filter', :filter => "%#{filter.present? ? filter.downcase : ''}%") }

  attr_accessible :name

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.6 test/dummy/app/models/photo.rb
rails_dash-0.0.5 test/dummy/app/models/photo.rb