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.


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

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