Skip to content

Commit

Permalink
Fixes #253
Browse files Browse the repository at this point in the history
  • Loading branch information
LightGuard committed Mar 22, 2013
1 parent 3295a86 commit 929e501
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/awestruct/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,13 @@ def remove_dependent(dep)

def clear
@dependencies.clear
@dependents.each{|d| d.remove_dependent( page ) }
@dependents.each do |d|
if (d.instance_of? Awestruct::Dependencies)
d.remove_dependent( page )
else
d.dependencies.remove_dependent( page )
end
end
end

def persist!
Expand Down
2 changes: 1 addition & 1 deletion lib/awestruct/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

module Awestruct
VERSION='0.5.0.cr'
VERSION='0.5.0'
end

0 comments on commit 929e501

Please sign in to comment.