Skip to content

Commit

Permalink
* Don't use second, use [1] instead so older rails systems don't comp…
Browse files Browse the repository at this point in the history
…lain.
  • Loading branch information
binarylogic committed Apr 1, 2009
1 parent 6ea2605 commit 6b77b33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file added .gitignore.swp
Binary file not shown.
4 changes: 4 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
== 2.0.6

* Don't use second, use [1] instead so older rails systems don't complain.

== 2.0.5 released 2009-3-30

* Stub out authenticate_with_http_basic for TestCase::ControllerAdapter.
Expand Down
2 changes: 1 addition & 1 deletion lib/authlogic/session/priority_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.included(klass)
def credentials=(value)
super
values = value.is_a?(Array) ? value : [value]
self.priority_record = values.second if values.second.class < ::ActiveRecord::Base
self.priority_record = values[1] if values[1].class < ::ActiveRecord::Base
end

private
Expand Down

1 comment on commit 6b77b33

@rnhurt
Copy link

@rnhurt rnhurt commented on 6b77b33 Apr 1, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this bug just hit my system and I’ve been trying to figure out what went wrong. Life on the bleeding edge is soooo fun. :)

Please sign in to comment.