Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval mistakenly resolved the module path #32

Closed
dtaniwaki opened this issue Mar 16, 2012 · 1 comment
Closed

eval mistakenly resolved the module path #32

dtaniwaki opened this issue Mar 16, 2012 · 1 comment

Comments

@dtaniwaki
Copy link

Hi

I found acts_as_list doesn't work well with enumerize gem 'https://github.com/twinslash/enumerize' because eval resolve incorrect module path.

In "lib/acts_as_list/active_record/acts/list.rb"

            include ActiveRecord::Acts::List::InstanceMethods

The module path can not resolved correctly in eval in some situations.
Could you just fix it like below?

            include ::ActiveRecord::Acts::List::InstanceMethods
swanandp added a commit that referenced this issue Mar 29, 2012
@swanandp
Copy link
Collaborator

Done, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants