class Pakyow::Data::Framework

Public Instance Methods

boot() click to toggle source
# File lib/pakyow/data/framework.rb, line 17
def boot
  object.class_eval do
    isolate Sources::Relational
    isolate Object

    stateful :source, isolated(:Relational)
    stateful :object, isolated(:Object)

    # Autoload sources from the `sources` directory.
    #
    aspect :sources

    # Autoload objects from the `objects` directory.
    #
    aspect :objects

    register_helper :active, Pakyow::Application::Helpers::Data

    include Application::Config::Data
    include Application::Behavior::Data::Lookup
    include Application::Behavior::Data::Serialization
  end
end