Sha256: d73948a7dea4afd3964be71aef71d722f0b4652cd1bce5e20a67b78645c0d5ee

Contents?: true

Size: 287 Bytes

Versions: 7

Compression:

Stored size: 287 Bytes

Contents

module Form
  module Static
    extend ActiveSupport::Concern

    included do
      self.abstract_class = true
    end

    def with_email?
      false
    end

    def form_name
      model_name.element
    end

    def js_form_selector
      "#new_form_#{form_name}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/models/form/static.rb
rails_admin_cms-0.0.9 app/models/form/static.rb
rails_admin_cms-0.0.7 app/models/form/static.rb
rails_admin_cms-0.0.6 app/models/form/static.rb
rails_admin_cms-0.0.5 app/models/form/static.rb
rails_admin_cms-0.0.4 app/models/form/static.rb
rails_admin_cms-0.0.3 app/models/form/static.rb