swanandp/acts_as_list — pull request #123 by flarik (2014-05-30 15:35:02+00:00)
Title: use eval for determing the self.class.name useful when this is used in an abstract class

When using acts_as_list in an Inheritance class like this:

```ruby
class SuperClass < ActiveRecord::Base
self.abstract_class = true
acts_as_list
end

class Child < SuperClass
self.table_name = 'the_table_i_really_want'
end
```
The output of the method acts_as_list_class is set to the name of the parent class (::SuperClass) instead of the child class (::Child). By using eval the correct Class name is returned. I'm using the variable @acts_as_list_class so eval doesn't slow things down.

Maybe there is a better (rails?) way of doing this then eval. But is works.

reference: http://api.rubyonrails.org/classes/ActiveRecord/Inheritance/ClassMethods.html