Exception: ActiveAdmin::Resource::BelongsTo::TargetNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_admin/resource/belongs_to.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, namespace) ⇒ TargetNotFound

Returns a new instance of TargetNotFound.



9
10
11
12
# File 'lib/active_admin/resource/belongs_to.rb', line 9

def initialize(key, namespace)
  super "Could not find #{key} in #{namespace.name} " +
        "with #{namespace.resources.map(&:resource_name)}"
end