lib/authlogic/session/params.rb in authlogic-2.0.11 vs lib/authlogic/session/params.rb in authlogic-2.0.12

- old
+ new

@@ -41,20 +41,20 @@ # the id will be appended to the front. Check out cookie_key for more details. Also checkout the "Single Access / Private Feeds Access" section in the README. # # * <tt>Default:</tt> cookie_key # * <tt>Accepts:</tt> String def params_key(value = nil) - config(:params_key, value, cookie_key) + rw_config(:params_key, value, cookie_key) end alias_method :params_key=, :params_key # Authentication is allowed via a single access token, but maybe this is something you don't want for your application as a whole. Maybe this is something you only want for specific request types. # Specify a list of allowed request types and single access authentication will only be allowed for the ones you specify. # # * <tt>Default:</tt> ["application/rss+xml", "application/atom+xml"] # * <tt>Accepts:</tt> String of a request type, or :all or :any to allow single access authentication for any and all request types def single_access_allowed_request_types(value = nil) - config(:single_access_allowed_request_types, value, ["application/rss+xml", "application/atom+xml"]) + rw_config(:single_access_allowed_request_types, value, ["application/rss+xml", "application/atom+xml"]) end alias_method :single_access_allowed_request_types=, :single_access_allowed_request_types end # The methods available for an Authlogic::Session::Base object that make up the params / single access feature. \ No newline at end of file