rails/rails — Issue #4167: ActiveSupport::Concern & include M1, M2, M3 syntax
Author: mitya
Created: 2011-12-24 17:23:54+00:00
State: open

It seems that ActiveSupport::Concern tries to run append_features callbacks in the reverse order when include statement contains multiple modules. So a piece of code like:

class Post
include Mongoid::Document, Mongoid::Timestamps
end

will not work, but the following one will be ok.

class Post
include Mongoid::Timestamps, Mongoid::Document
end