module TinyDyno

encoding: utf-8

encoding: utf-8

encoding: utf-8

encoding: utf-8

encoding: utf-8

Constants

VERSION

Public Instance Methods

models() click to toggle source

Get all the models in the application - this is everything that includes TinyDyno::Document.

@example Get all the models.

config.models

@return [ Array<Class> ] All the models in the application.

# File lib/tiny_dyno.rb, line 38
def models
  @models ||= []
end
register_model(klass) click to toggle source

Register a model in the application with TinyDyno.

@example Register a model.

config.register_model(Band)

@param [ Class ] klass The model to register.

# File lib/tiny_dyno.rb, line 27
def register_model(klass)
  models.push(klass) unless models.include?(klass)
end