Sha256: 95417365749f0332b2d1e87ac9f9d9e76865bb79b58d73e6720c3d77255ba9c7

Contents?: true

Size: 800 Bytes

Versions: 3

Compression:

Stored size: 800 Bytes

Contents

class Orms::ActiveRecordOrmPrimalsController < Puffer::Base

  setup do
    group :active_record
    model_name 'active_record_orm/primal'
  end

  index do
    field :string_field
    field :text_field
    field :select_field, :select => (1..5).map {|i| "option #{i}"}
    field :integer_field
    field :float_field
    field :decimal_field
    field :datetime_field
    field :timestamp_field
    field :time_field
    field :date_field
    field :boolean_field
  end

  form do
    field :string_field
    field :text_field
    field :select_field, :select => (1..5).map {|i| "option #{i}"}
    field :integer_field
    field :float_field
    field :decimal_field
    field :datetime_field
    field :timestamp_field
    field :time_field
    field :date_field
    field :boolean_field
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puffer-0.0.32 spec/dummy/app/controllers/orms/active_record_orm_primals_controller.rb
puffer-0.0.31 spec/dummy/app/controllers/orms/active_record_orm_primals_controller.rb
puffer-0.0.30 spec/dummy/app/controllers/orms/active_record_orm_primals_controller.rb