lib/glue/hierarchical.rb in og-0.27.0 vs lib/glue/hierarchical.rb in og-0.28.0
- old
+ new
@@ -1,19 +1,20 @@
-require 'mega/dynamod'
-require 'mega/orm_support'
+require 'facet/ormsupport'
+require 'glue/paramix'
+
module Glue
# Implements the Nested Sets pattern for hierarchical
# SQL queries.
#--
# TODO: use active collections.
#++
module NestedSets
- def self.append_dynamic_features(base, options)
+ def self.included_with_params(base, options)
c = {
:left => 'lft',
:right => 'rgt',
:type => Fixnum,
:parent => base.to_s.demodulize.underscore.downcase,
@@ -126,10 +127,10 @@
# :nested_sets
# :nested_intervals
module Hierarchical
- def self.append_dynamic_features(base, options)
+ def self.included_with_params(base, options)
o = {
:method => :nested_sets,
}
o.update(options) if options