Sha256: 1245fd1804b439ededeb467d136492ac84af5fe7eaafe04dee187f8feecd7472

Contents?: true

Size: 233 Bytes

Versions: 15

Compression:

Stored size: 233 Bytes

Contents

require_relative "associative"

module Administrate
  module Field
    class Polymorphic < Associative
      protected

      def associated_dashboard
        "#{data.class.name}Dashboard".constantize.new
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
administrate-0.8.1 lib/administrate/field/polymorphic.rb
administrate-0.8.0 lib/administrate/field/polymorphic.rb
administrate-0.7.0 lib/administrate/field/polymorphic.rb
administrate-0.6.0 lib/administrate/field/polymorphic.rb
administrate-0.5.0 lib/administrate/field/polymorphic.rb
administrate-0.4.0 lib/administrate/field/polymorphic.rb
administrate-0.3.0 lib/administrate/field/polymorphic.rb
administrate-0.2.2 lib/administrate/field/polymorphic.rb
administrate-0.2.1 lib/administrate/field/polymorphic.rb
administrate-0.2.0 lib/administrate/field/polymorphic.rb
administrate-0.2.0.rc1 lib/administrate/field/polymorphic.rb
administrate-0.1.5 lib/administrate/field/polymorphic.rb
administrate-0.1.4 lib/administrate/field/polymorphic.rb
administrate-0.1.3 lib/administrate/fields/polymorphic.rb
administrate-0.1.2 lib/administrate/fields/polymorphic.rb