Skip to content

custom Resource#search method causes failure in admin interface #106

@riffraff

Description

@riffraff

I have a silly search method like

class User
  def self.search(key,max=10)
    dummy like() query based on key
  end
end

I tried adding this resource to the admin interface, but it causes activeadmin to fail. As far as I understand the code in collections.rb ends up invoking my custom search method (on page load, which seems strange) without knowing what parameters are acceptable, and when this fails it ìs unable to go on with building the rest of the UI.

This seems related to #25. Happens with ruby 1.8.7, rails 3.0.7, using User class as the admin (devise user class), ActiveAdmin gem 0.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions