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

Version Path
rhosync-2.1.18.beta2 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.18.beta1 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta7 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta6 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta5 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta4 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta3 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta2 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.17.beta1 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.16 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.15 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.14 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.13 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.12 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.11 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.10 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.7 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.6 lib/rhosync/console/app/helpers/auth_helper.rb
rhosync-2.1.3 lib/rhosync/console/app/helpers/auth_helper.rb