Maybe this could help in the base class > > module CommonFields > def self.included base > base.class_eval do > include DataMapper::Resource > > DataMapper::Resource::property :type, base::Discriminator > Datamapper::Resource::property :enable_feature1, base::Boolean, > :default => false > Datamapper::Resource::property :enable_feature2, base::Boolean, > :default => false > end > end > end > > class A > include CommonFields > > property: title, String > end > > class B > include CommonFields > end > > This will ensure that namespacing will remove the ambiguities that are faced by the interpreter.
-- You received this message because you are subscribed to the Google Groups "DataMapper" group. To unsubscribe from this group and stop receiving emails from it, send an email to datamapper+unsubscr...@googlegroups.com. To post to this group, send email to datamapper@googlegroups.com. Visit this group at http://groups.google.com/group/datamapper?hl=en. For more options, visit https://groups.google.com/groups/opt_out.