README.md in clearance-1.6.1 vs README.md in clearance-1.7.0

- old
+ new

@@ -98,15 +98,15 @@ Clearance.configure do |config| config.mailer_sender = 'reply@example.com' end ``` -Use `authorize` to control access in controllers: +Use `require_login` to control access in controllers: ```ruby class ArticlesController < ApplicationController - before_filter :authorize + before_filter :require_login def index current_user.articles end end @@ -458,14 +458,14 @@ Run the specs: rake -Testing authorized controller actions -------------------------------------- +Testing controller actions that require login +--------------------------------------------- -To test controller actions that are protected by `before_filter :authorize`, +To test controller actions that are protected by `before_filter :require_login`, require Clearance's test helpers and matchers in your test suite. For `rspec`, add this line to your `spec/spec_helper.rb`: ```ruby @@ -553,9 +553,9 @@ you. Thank you! License ------- -Clearance is copyright © 2009-2014 thoughtbot. It is free software, and may be +Clearance is copyright © 2009 thoughtbot. It is free software, and may be redistributed under the terms specified in the `LICENSE` file. The names and logos for thoughtbot are trademarks of thoughtbot, inc.