lib/generators/templates/effective_pages.rb in effective_pages-0.9.0 vs lib/generators/templates/effective_pages.rb in effective_pages-0.9.1

- old
+ new

@@ -18,10 +18,10 @@ # Excluded Layouts # Any app/views/layouts/ layout files that should be excluded config.excluded_layouts = [:admin] # Use CanCan: can?(action, resource) - # Use effective_roles: resource.roles_match_with?(current_user) + # Use effective_roles: resource.roles_permit?(current_user) config.authorization_method = Proc.new { |controller, action, resource| true } # Layout Settings # Configure the Layout per controller, or all at once