lib/cantango/masquerade_ext/macros/account.rb in cantango-masquerade-0.1.3 vs lib/cantango/masquerade_ext/macros/account.rb in cantango-masquerade-0.1.3.1

- old
+ new

@@ -3,10 +3,10 @@ def tango_account options = {} self.send :include, CanTango::Api::Model::Account options = CanTango::Macros.extract(options) if options.any_kind_of?(Array, Symbol) if defined? CanTango::Macros::Masquerader::Account - self.send :include, CanTango::Macros::Masquerader::Account + self.extend CanTango::Macros::Masquerader::Account masquerader if options[:masquerade] end end end end