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
o2webappizer-0.1.6 templates/app/models/form/contact.rb
rails_admin_cms-0.0.5 lib/generators/cms/install/templates/app/models/form/contact.rb
o2webappizer-0.1.5 templates/app/models/form/contact.rb
rails_admin_cms-0.0.4 lib/generators/cms/install/templates/app/models/form/contact.rb
o2webappizer-0.1.4 templates/app/models/form/contact.rb
o2webappizer-0.1.3 templates/app/models/form/contact.rb
rails_admin_cms-0.0.3 lib/generators/cms/install/templates/app/models/form/contact.rb
rails_admin_cms-0.0.2 lib/generators/cms/install/templates/app/models/form/contact.rb
rails_admin_cms-0.0.1 lib/generators/cms/install/templates/app/models/form/contact.rb