Sha256: ba4db7eca50d9a98e24c9aa099d83c777b9663453b45aca31ed9384ba1287e72

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 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[:method]
        end

        def preview_handler
          @opts[:handler]
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rademade_admin-0.2.2 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.2.1 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.2.0 lib/rademade_admin/model/configuration/list_field.rb
rademade_admin-0.1.6 lib/rademade_admin/model/configuration/list_field.rb