wagon_rails 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8be18dd408eece1c59bfee8be1f610fb5d67f3d2
4
- data.tar.gz: 3e2e9a0ccc8b32d15dd6764ca1eecb8906bb35b5
3
+ metadata.gz: 74b408eb26fb8b7382a1f5a644176575a4836df1
4
+ data.tar.gz: 2d147e5d22d8963b7400029632e4fa453654b225
5
5
  SHA512:
6
- metadata.gz: b8a8ce2ed54b032a5fd03d1f70c1bb8a4e55ee7a405f2820d21257735f9106b4c1a1c83bc3bf7c6e2a8df538cdf8cf4ecba7206ce3ba78dcdacff463b982f35f
7
- data.tar.gz: 456374bd9ea4f8619e171e091e13a2777cc516258187e4fffc04d9409a864aaa9a6c566e3ba074d68999743d1b1c349acb7d37d6eab9e00a9514da1ae133562d
6
+ metadata.gz: 5314188d3f28d5c6733ba6962ccce1e32a5ab68bddd73c341ae04e5ab56d2c935c2fc9313e21e2803b7d3f5e2cdb1df2906ab073b1b6f081d3d2fccbe1ecc1bc
7
+ data.tar.gz: dce142276746b64748b26b7b583dd8a3a0f9eff8c8c3410d09d7bca46858a3ff10510c150d0a72c841ead5009431a5505889f15bf833c7e2656d6ab956a670f5
@@ -1,5 +1,5 @@
1
1
  module WagonRails
2
2
  RAILS_VERSION = "4.2.0"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
@@ -3,7 +3,6 @@ class ApplicationController < ActionController::Base
3
3
  before_filter :authenticate_user!, unless: :pages_controller?
4
4
 
5
5
  include Pundit
6
- protect_from_forgery
7
6
  after_action :verify_authorized, except: :index, unless: :devise_or_pages_controller?
8
7
  after_action :verify_policy_scoped, only: :index, unless: :devise_or_pages_controller?
9
8
 
@@ -13,7 +12,7 @@ class ApplicationController < ActionController::Base
13
12
 
14
13
  def user_not_authorized
15
14
  flash[:error] = I18n.t('controllers.application.user_not_authorized', default: "You can't access this page.")
16
- redirect_to(tracks_path)
15
+ redirect_to(root_path)
17
16
  end
18
17
 
19
18
  def devise_or_pages_controller?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagon_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ssaunier