Sha256: 415b4e233b7eaf2885388ad64c72afd0393b7af424fbe629b3cf2a0a60731edb

Contents?: true

Size: 475 Bytes

Versions: 6

Compression:

Stored size: 475 Bytes

Contents

module Naming
  module Form
    class << self
      def models
        @_models ||= Naming::Form.structure_models + Naming::Form.static_models + %w[
          Form::Row
        ]
      end

      def static_models
        @_static_models ||= Naming::Viewable::Form.static_names.map{ |name| "Form::#{name.camelize}" }
      end

      def structure_models
        %w[
          Form::Structure
          Form::Field
          Form::Email
        ]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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