Sha256: 235d1da06f72934c2fee91a19f4d03614d086fb19ed1c67920a5d14fe3659775

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Myreplicator
  class ApplicationController < ActionController::Base
    before_filter :authorized?

    def authorized?
      if Myreplicator.auth_required
        redirect_to Myreplicator.login_redirect unless Myreplicator.authenticated
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
myreplicator-0.0.14 app/controllers/myreplicator/application_controller.rb