Class: Openall_time_applet::Models

Inherits:
Object
  • Object
show all
Defined in:
lib/openall_time_applet.rb

Overview

Subclass controlling autoloading of models.

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object

Autoloader for subclasses.



33
34
35
36
# File 'lib/openall_time_applet.rb', line 33

def self.const_missing(name)
  require "#{File.dirname(__FILE__)}/../models/#{name.to_s.downcase}.rb"
  return Openall_time_applet::Models.const_get(name)
end