inline_forms 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/inline_forms CHANGED
@@ -364,11 +364,11 @@ module InlineForms
364
364
  layout 'devise' if :devise_controller?
365
365
 
366
366
  # Comment next 6 lines if you want CanCan authorization
367
- check_authorization :unless => :devise_controller?
368
-
369
- rescue_from CanCan::AccessDenied do |exception|
370
- sign_out :user if user_signed_in?
371
- redirect_to new_user_session_path, :alert => exception.message
367
+ enable_authorization :unless => :devise_controller?
368
+
369
+ rescue_from CanCan::Unauthorized do |exception|
370
+ sign_out :user if user_signed_in?
371
+ redirect_to new_user_session_path, :alert => exception.message
372
372
  end
373
373
 
374
374
  # Uncomment next line if you want I18n (based on subdomain)
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: