Sha256: 6f090b176d114077acc17a2cd4f1d592ec87be1f7dd182258869de2435960a81

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 Bytes

Contents

# -*- encoding : utf-8 -*-
module RademadeAdmin
  module Model
    class Configuration
      class ListField

        attr_accessor :name

        def initialize(name, opts = {})
          @name = name
          @opts = opts
        end

        def preview_accessor
          @opts.has_key?(:method) ? @opts[:method] : nil
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rademade_admin-0.1.5 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.1.4 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.1.3 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.1.2 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.1.1 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.1.0 lib/rademade_admin/model/configuration/list_field.rb