Module: Wristband::ApplicationExtensions

Defined in:
lib/wristband/application_extensions.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
# File 'lib/wristband/application_extensions.rb', line 3

def self.included(base)
  base.send(:extend, Wristband::ApplicationExtensions::ClassMethods)
  base.send(:include, Wristband::ApplicationExtensions::InstanceMethods)
  base.send(:helper_method, :logged_in?, :current_user) if base.respond_to?(:helper_method)
end