Skip to content

Commit

Permalink
Merge branch 'meta-dsl'
Browse files Browse the repository at this point in the history
* meta-dsl:
  moved dsl files under document/dsl directory
  added meta_dsl.rb as a helper to associations, coercions and othe meta-related DSLs
  • Loading branch information
Oleg Andreev committed May 1, 2008
2 parents 2ad5e38 + 5ac3a1a commit 7917c40
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
5 changes: 1 addition & 4 deletions lib/strokedb/document.rb
@@ -1,10 +1,7 @@
require 'document/validations'
require 'document/virtualize'
require 'document/dsl'
require 'document/util'
require 'document/meta'
require 'document/associations'
require 'document/callback'
require 'document/coercions'
require 'document/delete'
require 'document/slot'
require 'document/versions'
Expand Down
4 changes: 4 additions & 0 deletions lib/strokedb/document/dsl.rb
@@ -0,0 +1,4 @@
require 'document/dsl/validations'
require 'document/dsl/virtualize'
require 'document/dsl/associations'
require 'document/dsl/coercions'
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions lib/strokedb/document/dsl/meta_dsl.rb
@@ -0,0 +1,7 @@
module StrokeDB
module MetaDSL
def on_initialize(&block)
store_dsl_options("on_initialize", block)
end
end
end
File renamed without changes.
File renamed without changes.

0 comments on commit 7917c40

Please sign in to comment.