rails_apps_pages 0.5.15 → 0.5.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5802c52c8674a590019d42012a54349e641cf61c
4
- data.tar.gz: f44a22fc29132d513e54e1f92f7825fe1e11e9db
3
+ metadata.gz: dc5deb36ded3ed4d54c092b0460aa38e71e01cb8
4
+ data.tar.gz: f60f12a3f0d129236063a976e2c0ea1b4a5bb1ee
5
5
  SHA512:
6
- metadata.gz: 9bb8c666b0d57939b692361ab2585741df87ee2a11998d2724607ba06adf20467d034699b075459f27ba75e57b1735325817e4458d81feecf0556d6a9b397869
7
- data.tar.gz: 8e897bd86b4a457533784727a8896a92c8343421ad452581774c62c521b4315b5bae405d6b2f4e9daade18ee80382683a081ead7bad8d8aa900127aa797f9811
6
+ metadata.gz: 88fccccca8bd6796e6c07f78126ee2c217f33b01a2ee899ab9690abbb52227547f3ed24b91ba075df52553ece686f02c398362c7a942c4a74d376e73d4a8b173
7
+ data.tar.gz: cea075c80f176e00cf50d66170d0be16b209ef9fe9eff61b0669979a9c57b02c9c172f076f91a4ae5989df3fabb92e16a9d6303efdbf205a495b809d9dad028e
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.5.16 April 27, 2015
4
+
5
+ * 'before_filter' becomes 'before_action' for upcoming Rails 5.0
6
+
3
7
  h3. 0.5.15 September 14, 2014
4
8
 
5
9
  * generate a navlink for Upmin using the 'rails_layout' gem instead
@@ -1,5 +1,5 @@
1
1
  class UsersController < ApplicationController
2
- before_filter :authenticate_user!
2
+ before_action :authenticate_user!
3
3
  after_action :verify_authorized
4
4
 
5
5
  def index
@@ -1,6 +1,6 @@
1
1
  class UsersController < ApplicationController
2
- before_filter :authenticate_user!
3
- before_filter :correct_user?, :except => [:index]
2
+ before_action :authenticate_user!
3
+ before_action :correct_user?, :except => [:index]
4
4
 
5
5
  def index
6
6
  @users = User.all
@@ -1,6 +1,6 @@
1
1
  class UsersController < ApplicationController
2
- before_filter :authenticate_user!
3
- before_filter :admin_only, :except => :show
2
+ before_action :authenticate_user!
3
+ before_action :admin_only, :except => :show
4
4
 
5
5
  def index
6
6
  @users = User.all
@@ -1,6 +1,6 @@
1
1
  class UsersController < ApplicationController
2
- before_filter :authenticate_user!
3
- before_filter :admin_only, :except => :show
2
+ before_action :authenticate_user!
3
+ before_action :admin_only, :except => :show
4
4
 
5
5
  def index
6
6
  @users = User.all
@@ -6,8 +6,8 @@ module AdminOnly
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  included do
9
- before_filter :authenticate_user!
10
- before_filter :admin_only
9
+ before_action :authenticate_user!
10
+ before_action :admin_only
11
11
  end
12
12
 
13
13
  private
@@ -2,7 +2,7 @@ module DevisePermittedParameters
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- before_filter :configure_permitted_parameters
5
+ before_action :configure_permitted_parameters
6
6
  end
7
7
 
8
8
  protected
@@ -1,5 +1,5 @@
1
1
  class UsersController < ApplicationController
2
- before_filter :authenticate_user!
2
+ before_action :authenticate_user!
3
3
 
4
4
  def index
5
5
  @users = User.all
@@ -1,6 +1,6 @@
1
1
  class UsersController < ApplicationController
2
- before_filter :authenticate_user!
3
- before_filter :correct_user?, :except => [:index]
2
+ before_action :authenticate_user!
3
+ before_action :correct_user?, :except => [:index]
4
4
 
5
5
  def index
6
6
  @users = User.all
@@ -1,3 +1,3 @@
1
1
  module RailsAppsPages
2
- VERSION = "0.5.15"
2
+ VERSION = "0.5.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler