Module: Goldencobra::SelectCurrentClient

Defined in:
lib/goldencobra/select_current_client.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/goldencobra/select_current_client.rb', line 6

def self.included(base)
  base.class_eval do
    include InstanceMethods
    extend ClassMethods
    before_filter :determine_client
    before_filter :add_view_path_for_client
    helper_method :current_client
  end
end