Sha256: fd3f98411d5f0a32c5a08497c246dac7868d711484313d418b20c3e69b7290bd

Contents?: true

Size: 217 Bytes

Versions: 4

Compression:

Stored size: 217 Bytes

Contents

module Rails
  
  module AuthenticatedControllerExtensions
    
    def included(base)
      base.send :helper_method, :logged_in?
    end
    
    def logged_in?
      session.authenticated?
    end
    
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
myobie-rails-auth-0.0.0 lib/rails-auth/helpers/logged_in.rb
myobie-rails-auth-0.0.2 lib/rails-auth/helpers/logged_in.rb
myobie-rails-auth-0.0.3 lib/rails-auth/helpers/logged_in.rb
myobie-rails-auth-0.0.4 lib/rails-auth/helpers/logged_in.rb