On Wed, Sep 1, 2010 at 1:37 PM, daze <dmonopoly10@gmail.com> wrote:
> I noticed though that the problem seems to stem from the
> acts_as_authentic line in my User model. might that mean anything?
> what exactly is that line anyway....
Presumably you put it there? :-)
Anyway, from a project of my own:
$ find -type f -name '*.rb' -exec grep -H 'acts_as_authentic' {} \;
app/models/user.rb: acts_as_authentic do |c|
vendor/gems/authlogic-2.1.6/lib/authlogic/acts_as_authentic/base.rb:
# Provides the base functionality for acts_as_authentic
$ find vendor/gems/authlogic-2.1.6 -type f -name '*.rb' -exec grep
'named_scope' {} \;
named_scope :logged_in, lambda { {:conditions =>
["last_request_at > ?", logged_in_timeout.seconds.ago]} }
named_scope :logged_out, lambda { {:conditions =>
["last_request_at is NULL or last_request_at <= ?",
logged_in_timeout.seconds.ago]} }
...
$
FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment