class RailsAdmin::Config::Fields::Types::NestedOne

Public Instance Methods

editable?() click to toggle source
Calls superclass method
# File lib/rails_admin_extended_fields.rb, line 75
def editable?
  (nested_form || abstract_model.model.new.respond_to?("#{name}_id=")) && super
end
method_name() click to toggle source
# File lib/rails_admin_extended_fields.rb, line 83
def method_name
  nested_form ? "#{name}_attributes".to_sym : "#{name}_id".to_sym
end
multiple?() click to toggle source
# File lib/rails_admin_extended_fields.rb, line 87
def multiple?
  false
end
selected_id() click to toggle source
# File lib/rails_admin_extended_fields.rb, line 79
def selected_id
  value.try :id
end