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.1.1.7 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.6 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.5 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.4 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.3 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.2 app/models/tramway/landing/form.rb
tramway-landing-3.1.1.1 app/models/tramway/landing/form.rb
tramway-landing-3.1.1 app/models/tramway/landing/form.rb
tramway-landing-3.1.0.6 app/models/tramway/landing/form.rb