Module: Waves::Layers::ORM::Filebase

Defined in:
lib/waves/layers/orm/providers/filebase.rb

Overview

The Filebase ORM layer configures model classes to use Filebase with a datastore located in db/model_name, where @model_name@ is the snakecased version of the class name.

The Filebase store for Blog::Models::Entry would be located in db/entry, for example.

Class Method Summary collapse

Class Method Details

.included(app) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/waves/layers/orm/providers/filebase.rb', line 11

def self.included(app)
  app.module_eval do
    auto_eval( :Models ) do
      auto_eval( true ) { include ::Filebase::Model[ :db / self.basename.snake_case ] }
    end
  end
end