Sha256: 596e99f583d8faec55a3cd0530c1311700ed7802561de189d3624ef0a2ca0b0b

Contents?: true

Size: 431 Bytes

Versions: 29

Compression:

Stored size: 431 Bytes

Contents

module Form
  class Contact < Static::Object # < Static::Base
    include Admin::Form::Static::Object

    include Static::Email
    include Static::Attachment

    # has_attachments :letter, :resume
    has_collections :periods

    attribute :name, :string
    attribute :email, :string
    attribute :periods, :text

    with_options presence: true do
      validates :name
      validates :email, email: true
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
rails_admin_cms-0.1.1 lib/generators/cms/install/templates/app/models/form/contact.rb
o2webappizer-0.2.6 templates/app/models/form/contact.rb
rails_admin_cms-0.0.9 lib/generators/cms/install/templates/app/models/form/contact.rb
o2webappizer-0.2.5 templates/app/models/form/contact.rb
o2webappizer-0.2.4 templates/app/models/form/contact.rb
o2webappizer-0.2.3 templates/app/models/form/contact.rb
o2webappizer-0.2.2 templates/app/models/form/contact.rb
o2webappizer-0.2.1 templates/app/models/form/contact.rb
rails_admin_cms-0.0.7 lib/generators/cms/install/templates/app/models/form/contact.rb
o2webappizer-0.2.0 templates/app/models/form/contact.rb
o2webappizer-0.1.15 templates/app/models/form/contact.rb
o2webappizer-0.1.14 templates/app/models/form/contact.rb
o2webappizer-0.1.13 templates/app/models/form/contact.rb
o2webappizer-0.1.12 templates/app/models/form/contact.rb
o2webappizer-0.1.11 templates/app/models/form/contact.rb
o2webappizer-0.1.10 templates/app/models/form/contact.rb
o2webappizer-0.1.9 templates/app/models/form/contact.rb
o2webappizer-0.1.8 templates/app/models/form/contact.rb
o2webappizer-0.1.7 templates/app/models/form/contact.rb
rails_admin_cms-0.0.6 lib/generators/cms/install/templates/app/models/form/contact.rb