Sha256: 2dfe031846cdf490ecaac084f54ce7b8b8e57c0f680116637b446e55ec93b296

Contents?: true

Size: 278 Bytes

Versions: 29

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

class Tramway::Landing::Form < ApplicationRecord
  belongs_to :block, class_name: 'Tramway::Landing::Block'

  enumerize :form_name, in: (Dir[Rails.root.join('app', 'forms', 'public', '**')].map { |f| f.split('/').last.gsub('_form.rb', '') })
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
tramway-landing-3.3.0.11 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.10 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.9 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.8 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.7 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.6 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.5 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.4 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.3 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.2 app/models/tramway/landing/form.rb
tramway-landing-3.3.0.1 app/models/tramway/landing/form.rb
tramway-landing-3.3 app/models/tramway/landing/form.rb
tramway-landing-3.2.0.3 app/models/tramway/landing/form.rb
tramway-landing-3.2.0.2 app/models/tramway/landing/form.rb
tramway-landing-3.2 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.12 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.11 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.10 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.9 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.8 app/models/tramway/landing/form.rb