Sha256: ab9fe8359f9192701f8924e6e2a7ff305d2a728d7b5b647d69160aebdbfd35d2

Contents?: true

Size: 262 Bytes

Versions: 31

Compression:

Stored size: 262 Bytes

Contents

class Book < ActiveRecord::Base

  # the position of the fields block must be preserved
  belongs_to :author

  fields do
    title :string
    price :decimal, :precision=>8, :scale=>4
    code :string, :limit=>4
    comments :text
    zzzzz :integer
  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
modalfields-1.5.7 test/model_cases/dirty/before/book.rb
modalfields-1.5.6 test/model_cases/dirty/before/book.rb
modalfields-1.5.5 test/model_cases/dirty/before/book.rb
modalfields-1.5.4 test/model_cases/dirty/before/book.rb
modalfields-1.5.3 test/model_cases/dirty/before/book.rb
modalfields-1.5.2 test/model_cases/dirty/before/book.rb
modalfields-1.5.1 test/model_cases/dirty/before/book.rb
modalfields-1.5.0 test/model_cases/dirty/before/book.rb
modalfields-1.4.7 test/model_cases/dirty/before/book.rb
modalfields-1.4.6 test/model_cases/dirty/before/book.rb
modalfields-1.4.5 test/model_cases/dirty/before/book.rb
modalfields-1.4.4 test/model_cases/dirty/before/book.rb
modalfields-1.4.3 test/model_cases/dirty/before/book.rb
modalfields-1.4.2 test/model_cases/dirty/before/book.rb
modalfields-1.4.1 test/model_cases/dirty/before/book.rb
modalfields-1.4.0 test/model_cases/dirty/before/book.rb
modalfields-1.3.0 test/model_cases/dirty/before/book.rb
modalfields-1.2.2 test/model_cases/dirty/before/book.rb
modalfields-1.2.1 test/model_cases/dirty/before/book.rb
modalfields-1.2.0 test/model_cases/dirty/before/book.rb