Module: LightMobile

Defined in:
lib/light_mobile.rb,
lib/light_mobile/engine.rb,
lib/light_mobile/version.rb,
app/controllers/light_mobile/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, DynamicRenderer, TabsHelper Classes: ApplicationController, Engine, Tabs

Constant Summary collapse

VERSION =
"0.0.12"

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



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

def self.const_missing(name)
  file_name = "#{::File.dirname(__FILE__)}/light_mobile/#{::StringCases.camel_to_snake(name)}.rb"

  if ::File.exists?(file_name)
    require file_name
    return ::LightMobile.const_get(name) if ::LightMobile.const_defined?(name)
  end

  super
end