Rails 3.2.3 compatible? #3

Open
fiedl opened this Issue Apr 25, 2012 · 2 comments

1 participant

@fiedl

Is this compatible with Rails 3.2?
I'm continuously getting NoMethodError: undefined method 'write_inheritable_attribute'.

Thanks!

@fiedl

Following fix works for me (Rails 3.2.3, ruby 1.9.3p194, acts-as-dag-2.5.5):

In acts-as-dag-2.5.5/lib/dag.rb replace lines 22 and 23

write_inheritable_attribute :acts_as_dag_options, conf
class_inheritable_reader :acts_as_dag_options

by

class_attribute :acts_as_dag_options
self.acts_as_dag_options = conf
@fiedl

Sorry, apparently there is already a corrected fork:
https://github.com/resgraph/acts-as-dag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment