lib/administrate/field/has_one.rb in administrate-0.20.1 vs lib/administrate/field/has_one.rb in administrate-1.0.0.beta1

- old
+ new

@@ -18,30 +18,30 @@ else attr end end related_dashboard_attributes = - Administrate::ResourceResolver. - new("admin/#{final_associated_class_name}"). - dashboard_class.new.permitted_attributes + [:id] - { "#{attr}_attributes": related_dashboard_attributes } + Administrate::ResourceResolver + .new("admin/#{final_associated_class_name}") + .dashboard_class.new.permitted_attributes + [:id] + {"#{attr}_attributes": related_dashboard_attributes} end def self.eager_load? true end def nested_form @nested_form ||= Administrate::Page::Form.new( resolver.dashboard_class.new, - data || resolver.resource_class.new, + data || resolver.resource_class.new ) end def nested_show @nested_show ||= Administrate::Page::Show.new( resolver.dashboard_class.new, - data || resolver.resource_class.new, + data || resolver.resource_class.new ) end def linkable? data.try(:persisted?)