Sha256: 86f10306c83c45bd22464b35c92bc68352e3aa5cc5335c04eac66b58d5ff606f

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

class ContactUsPage < Fae::StaticPage

  @slug = 'contact_us'

  # required to set the has_one associations, Fae::StaticPage will build these associations dynamically
  def self.fae_fields
    {
      hero: { type: Fae::Image, languages: Fae.languages.keys },
      email: { type: Fae::TextField },
      body: {
        type: Fae::TextArea,
        languages: [:en, :zh],
        validates: {
          length: {
            maximum: 150
          }
        }
      }
    }
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fae-rails-1.6.0 spec/dummy/app/models/contact_us_page.rb
fae-rails-1.5.1 spec/dummy/app/models/contact_us_page.rb
fae-rails-1.5.0 spec/dummy/app/models/contact_us_page.rb
fae-rails-1.4.1 spec/dummy/app/models/contact_us_page.rb
fae-rails-1.4.0 spec/dummy/app/models/contact_us_page.rb
fae-rails-1.3.1 spec/dummy/app/models/contact_us_page.rb