module Sinatra::Authentication::LoginField
Public Class Methods
attr_name(attr_name = nil)
click to toggle source
# File lib/sinatra/authentication/login_field.rb, line 4 def self.attr_name(attr_name = nil) @attr_name = attr_name.to_sym if attr_name @attr_name end
included(user)
click to toggle source
# File lib/sinatra/authentication/login_field.rb, line 10 def self.included(user) # NOTE these are Ohm specific, add some Ottoman-ORM shit if needed # user.attribute LoginField.attr_name # user.index LoginField.attr_name end