Sha256: 0ca6e70b9187f0ae8db948578da378d541b417c2b4bb843df26a99d7c6cbde38
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module CanTango::Macros module Account def tango_user_account options = {} self.send :include, CanTango::AccountApi if defined? CanTango::Macros::Masquerader self.send :include, CanTango::Macros::Masquerader masquerader if options[:masquerade] end end alias_method :tango_account, :tango_user_account alias_method :cantango_account, :tango_user_account end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cantango-core-0.1.2 | lib/cantango/macros/account.rb |
cantango-core-0.1.1 | lib/cantango/macros/account.rb |
cantango-core-0.1.0 | lib/cantango/macros/account.rb |