Sha256: 3192cd810c8bbc2a6ed1db21e90335e67977fa11c4bec982a3135d1db8f14ff4

Contents?: true

Size: 134 Bytes

Versions: 6

Compression:

Stored size: 134 Bytes

Contents

class Recipe < ActiveRecord::Base
  scope :recent, -> {
    where("created_at > ?", Time.now - 1.day)
  }
  has_many :ingredients
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
replidog-1.1.3 spec/dummy/app/models/recipe.rb
replidog-1.1.2 spec/dummy/app/models/recipe.rb
replidog-1.1.1 spec/dummy/app/models/recipe.rb
replidog-1.1.0 spec/dummy/app/models/recipe.rb
replidog-1.0.0 spec/dummy/app/models/recipe.rb
replidog-0.1.0 spec/dummy/app/models/recipe.rb