AuthlogicRuby 認(rèn)證解決方案
Authlogic 是一個(gè)簡(jiǎn)單的 Ruby 認(rèn)證解決方案,支持 Rails 3 和 4,對(duì) Rails 2 的支持請(qǐng)看 rail2 分支。
示例代碼:
class UserSession < Authlogic::Session::Base # specify configuration here, such as: # logout_on_timeout true # ...many more options in the documentation end class User < ActiveRecord::Base acts_as_authentic do |c| c.my_config_option = my_value end # the configuration block is optional end
評(píng)論
圖片
表情
