flail 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,7 @@ class Flail
20
20
 
21
21
  def controller
22
22
  @controller ||= @env['action_controller.instance']
23
+ @controller ||= @request.controller if @request.respond_to?(:controller)
23
24
  end
24
25
 
25
26
  def user
@@ -14,6 +14,7 @@ class Flail
14
14
  # Rails 2's exception helpers.
15
15
  def rescue_action_in_public_with_flail(exception)
16
16
  request.env['flail.request'] = request
17
+ request.env['action_controller.instance'] = self
17
18
  Flail::Exception.new(request.env, exception).handle!
18
19
  rescue_action_in_public_without_flail(exception)
19
20
  end
data/lib/flail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Flail
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: