Sha256: 55740e7fd0057788de9aa8deeea0ba2379de11e83d7eccfc3ba15533de1b1858

Contents?: true

Size: 156 Bytes

Versions: 7

Compression:

Stored size: 156 Bytes

Contents

class Author < ActiveRecord::Base
  has_many :books

  # virtual attribute
  def name
    "#{last_name}, #{first_name}"
  end

  netzke_attribute :name
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
netzke-basepack-0.7.4 test/basepack_test_app/app/models/author.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/models/author.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/models/author.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/models/author.rb
netzke-basepack-0.6.5 test/rails_app/app/models/author.rb
netzke-basepack-0.7.0 test/rails_app/app/models/author.rb
netzke-basepack-0.6.4 test/rails_app/app/models/author.rb