class Administrate::Field::Type

Public Instance Methods

choices() click to toggle source
# File lib/administrate/field/type.rb, line 14
def choices
  c = []
  c << class_name if options[:include_parent]
  c + class_name.constantize.subclasses.map(&:to_s)
end
class_name() click to toggle source
# File lib/administrate/field/type.rb, line 20
def class_name
  options[:class_name] || raise(ArgumentError, "Field '#{attribute}' requires a class_name")
end
to_s() click to toggle source
# File lib/administrate/field/type.rb, line 10
def to_s
  data
end