README.md in portier-1.0.3 vs README.md in portier-1.1.0

- old
+ new

@@ -24,11 +24,11 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception # This filter the requests using the permission files - before_filter :protect_app + before_action :protect_app # You can define the current_user anyway you want as long as it return the current user record. def current_user # This is only an example of current_user method. Feel free to do it the way you want. begin @@ -161,10 +161,18 @@ current_user.admin? and options[:special] end end ``` +### namespace +If you are using namespacing in your controller, you can pass the namespace option. + +```erb + <%# app/views/admin/products/show.html.erb %> + + <%= link_to 'Edit product', edit_product_path(id: @product.id) if can? :edit, @product, namespace: :admin %> +``` Copyright --------- Copyright (c) 2014 Alchimik. See LICENSE for further details.