Class: Pakyow::Data::Framework

Inherits:
Object
  • Object
show all
Defined in:
lib/pakyow/data/framework.rb

Instance Method Summary collapse

Instance Method Details

#bootObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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