Sha256: a784d8c5f07a7490f5bf4a81112e6f468ea1299baa53da6d9326e5ca72ed114f
Contents?: true
Size: 387 Bytes
Versions: 49
Compression:
Stored size: 387 Bytes
Contents
class RhosyncConsole::Server helpers do def login_required session[:token].nil? end def report_error(message) session[:errors] = [] if session[:errors].nil? session[:errors] << message end def verify_presence_of(param,message) report_error(message) if params[param].nil? or params[param].length == 0 end end end
Version data entries
49 entries across 49 versions & 1 rubygems