Sha256: d94b714219275d7bae902b9e74d7866c2f5540464dbbed3e1887c2959f313e59

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module CanTango::Macros
  module Account
    def tango_account options = {}
      self.send :include, CanTango::Api::Account
      options = CanTango::Macros.extract(options) if options.kind_of? Array

      if defined? CanTango::Macros::Masquerader::Account
        self.send :include, CanTango::Macros::Masquerader::Account
        masquerader if options[:masquerade]
      end
    end    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-masquerade-0.1.1 lib/cantango/masquerade_ext/macros/account.rb