Module: ThreeScale::Backend::Constants

Included in:
ThreeScale::Backend
Defined in:
lib/3scale/backend/constants.rb

Defined Under Namespace

Modules: All

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
14
15
16
# File 'lib/3scale/backend/constants.rb', line 11

def self.included(base)
  All.constants.each do |k|
    base.const_set(k, All.const_get(k))
    base.private_constant k
  end
end