Skip to content

pry in call method in controller. #205

@barstuk

Description

@barstuk

I have a small issue when using binding.pry in call method of controller.
When I try to use it in:
def call(params)
binding.pry
end
It returns me error:
when_started hook failed: TypeError: bind argument must be an instance of Object
/home/adam/.rvm/gems/ruby-2.2.0/gems/pry-0.10.1/lib/pry/helpers/base_helpers.rb:22:in `bind'
(see pry.hooks.errors to debug)

It works only when I use:
def self.call(params)
binding.pry
end

But I don't want to work on self for obvious reasons.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions