With a class like this, which is namespaced, but doesn't have any parent classes:
class SomeNamespace::OtherNamespace::ActualClass
include Mongoid::Document
include Mongoid::Timestamps
include Promiscuous::Publisher
field :value
end
will lead to just this in the publisher file when the mocks are generated:
...
module SomeNamespace::OtherNamespace; end
...
class SomeNamespace::OtherNamespace::ActualClass
include Promiscuous::Publisher::Model::Mock
mock :from => 'app'
mock :id => :bson
publish :value
end
instead of
...
module SomeNamespace; end
module SomeNamespace::OtherNamespace; end
...
class SomeNamespace::OtherNamespace::ActualClass
include Promiscuous::Publisher::Model::Mock
mock :from => 'app'
mock :id => :bson
publish :value
end
I'm not sure if this is a bug in promiscuous or if the class was just written weird, since it doesn't really match any of the other classes we've done in the app.
With a class like this, which is namespaced, but doesn't have any parent classes:
will lead to just this in the publisher file when the mocks are generated:
instead of
I'm not sure if this is a bug in promiscuous or if the class was just written weird, since it doesn't really match any of the other classes we've done in the app.