module Gallerist
This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.
Copyright © 2015, Sebastian Staudt
Constants
- MODELS
Models
- VERSION
Public Class Methods
load_models()
click to toggle source
# File lib/gallerist.rb, line 27 def self.load_models MODELS.values.each { |file| require file } end
model(name, file)
click to toggle source
# File lib/gallerist.rb, line 21 def self.model(name, file) autoload name, file MODELS[name] = file end