This link has been bookmarked by 13 people . It was first bookmarked on 18 Sep 2008, by someone privately.
-
02 Jan 12
-
This is an interesting idea for covering up a bad design with a tube of lipstick. A user is a thing. Authentication is a behaviour. A user authenticates:
class User < ActiveRecord::Base
authenticates
end
module Authenticates
def self.included(base)
base.extend ClassMethods
base.send :include, InstanceMethods
end
module ClassMethods
def authenticates(options = {})
...
end
...
end
module InstanceMethods
...
end
end
-
-
04 Nov 10
Ivan Nemytchenkohttp://is.gd/gGI4S Concerned With - another technique for breaking up large #rails models to small parts. Thanks, @kpumuk!
– fxposter (fxposter) http://twitter.com/fxposter/status/29620653303 -
26 Feb 10
-
06 Feb 09
-
30 Oct 08
-
29 Sep 08
-
24 Sep 08
-
17 Sep 08
-
06 Sep 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.