Sha256: 09cba0946fec31a997ebeb2f2ff7a4b3b1646cceb66fcb05a4a7b94a722075bc

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

module Humpyard
  module ActionController #:nodoc:
    module Base #:nodoc:

      def self.included(base)
        base.module_eval do
          helper_attr :humpyard_user
          helper_attr :humpyard_logout_path
        end
      end

      def humpyard_user    
        current_user
      end
       
      def humpyard_logout_path
        "?user="
      end
    end
  end
end

ActionController::Base.send :include, Humpyard::ActionController::Base

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 lib/humpyard/action_controller/base.rb