Module: RailsAdserver::Config

Defined in:
lib/rails_adserver/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.application_nameObject

Returns the value of attribute application_name.



5
6
7
# File 'lib/rails_adserver/config.rb', line 5

def application_name
  @application_name
end

.carrierwave_methodObject

Returns the value of attribute carrierwave_method.



6
7
8
# File 'lib/rails_adserver/config.rb', line 6

def carrierwave_method
  @carrierwave_method
end

Class Method Details

.current_user_method(&block) ⇒ Object



7
8
9
10
# File 'lib/rails_adserver/config.rb', line 7

def current_user_method(&block)
  @current_user = block if block
  @current_user || DEFAULT_CURRENT_USER
end