Sha256: 5bcc954ac65d067796d6d5a5acecbb8d14d0b0c6f3c817d1607f9b4164216e6a

Contents?: true

Size: 911 Bytes

Versions: 4

Compression:

Stored size: 911 Bytes

Contents

class Orms::MongoidOrmPrimalsController < Puffer::Base

  setup do
    group :mongoid
    model_name 'mongoid_orm/primal'
  end

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

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

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