Permalink
Browse files

Alignment of =>

  • Loading branch information...
ramontayag committed Nov 12, 2011
1 parent 2214dd7 commit bc2fa45df73136a0981dfd4a687632b508a614e5
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/ordered_tree.rb
View
@@ -28,16 +28,16 @@ def ordered_tree(options = {})
self.ordered_tree_config.update(options) if options.is_a?(Hash)
belongs_to :parent_node,
- :class_name => self.name,
+ :class_name => self.name,
:foreign_key => ordered_tree_config[:foreign_key],
:primary_key => ordered_tree_config[:primary_key],
- :conditions => proc {scope_condition}
+ :conditions => proc {scope_condition}
has_many :child_nodes,
- :class_name => self.name,
+ :class_name => self.name,
:foreign_key => ordered_tree_config[:foreign_key],
:primary_key => ordered_tree_config[:primary_key],
- :conditions => proc {scope_condition},
- :order => ordered_tree_config[:order]
+ :conditions => proc {scope_condition},
+ :order => ordered_tree_config[:order]
scope :roots, lambda { |*args|
column = "#{self.table_name}.#{self.ordered_tree_config[:foreign_key].to_sym}"
scope_condition = args[0]

0 comments on commit bc2fa45

Please sign in to comment.