Skip to content

Commit

Permalink
Merge pull request #55 from felixbuenemann/fix-database-access-in-act…
Browse files Browse the repository at this point in the history
…s_as_tree-class-method

Fix database access caused by calling primary_key
  • Loading branch information
felixbuenemann authored Sep 8, 2016
2 parents 7a2d305 + bcdde25 commit 565c3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module ClassMethods
# a custom column by passing a symbol or string.
def acts_as_tree(options = {})
configuration = {
primary_key: primary_key,
primary_key: "id",
foreign_key: "parent_id",
order: nil,
counter_cache: nil,
Expand Down

0 comments on commit 565c3fd

Please sign in to comment.