Sha256: 3686b6e0c3d82878a47405083d3645d3c09642c04ec861ea3c49f944bb049356

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-masquerade-0.1.2 lib/cantango/masquerade_ext/macros/user.rb