Sha256: d37b7408c2439f66afc8968d159723a1b6f7d2c5bae1cbe59fd63ffe6cbf0992

Contents?: true

Size: 185 Bytes

Versions: 12

Compression:

Stored size: 185 Bytes

Contents

class Book < ActiveRecord::Base
  belongs_to :genre
  
  # netzke_virtual_attribute :recent => {:read_only => true}
  
  def recent
    updated_at > 1.hour.ago ? "Yes" : "No"
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
skozlov-netzke-basepack-0.5.0 test/app_root/app/models/book.rb
skozlov-netzke-basepack-0.5.1 test/app_root/app/models/book.rb
skozlov-netzke-basepack-0.5.2 test/app_root/app/models/book.rb
netzke-basepack-0.5.8 test/app_root/app/models/book.rb
netzke-basepack-0.5.7 test/app_root/app/models/book.rb
netzke-basepack-0.5.6 test/app_root/app/models/book.rb
netzke-basepack-0.5.5.1 test/app_root/app/models/book.rb
netzke-basepack-0.5.5 test/app_root/app/models/book.rb
netzke-basepack-0.5.4 test/app_root/app/models/book.rb
netzke-basepack-0.5.3 test/app_root/app/models/book.rb
netzke-basepack-0.5.1 test/app_root/app/models/book.rb
netzke-basepack-0.5.2 test/app_root/app/models/book.rb