Sha256: 5418f93b07528cfe98eb756c8e5f2454df1f683aa4345a7e4aefa7c5ad28ef03

Contents?: true

Size: 148 Bytes

Versions: 5

Compression:

Stored size: 148 Bytes

Contents

class Photo < ActiveRecord::Base

  scope :filter, lambda { |filter| where('', filter: "%#{filter.to_s.downcase}%") }

  attr_accessible :name

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_dash-0.1.4 test/dummy/app/models/photo.rb
rails_dash-0.1.3 test/dummy/app/models/photo.rb
rails_dash-0.1.2 test/dummy/app/models/photo.rb
rails_dash-0.1.1 test/dummy/app/models/photo.rb
rails_dash-0.1.0 test/dummy/app/models/photo.rb