Exception: ActiveAdmin::Resource::BelongsTo::TargetNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveAdmin::Resource::BelongsTo::TargetNotFound
- Defined in:
- lib/active_admin/resource/belongs_to.rb
Instance Method Summary collapse
-
#initialize(key, namespace) ⇒ TargetNotFound
constructor
A new instance of TargetNotFound.
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 |