Skip to content

Commit

Permalink
Merge pull request #1378 from andreazaupa/master
Browse files Browse the repository at this point in the history
missing allowed_methods for polymorphic fields
  • Loading branch information
bbenezech committed Oct 26, 2012
2 parents d93b92d + 7f147c3 commit a297164
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -37,6 +37,10 @@ class PolymorphicAssociation < RailsAdmin::Config::Fields::Types::BelongsToAssoc
nil
end

register_instance_option :allowed_methods do
[children_fields]
end

def associated_collection(type)
return [] if type.blank?
config = RailsAdmin.config(type)
Expand Down

0 comments on commit a297164

Please sign in to comment.