Sha256: dc03e0c6a181bdbdbf77f00033840818334c850c59b206a19ab3654ef6311b7b

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

module CanTango::Macros
  module User
    def tango_user options = {}
      self.send :include, CanTango::UserApi
      self.send :include, CanTango::Masquerade::UserApi
      masquerader if options[:masquerade]
    end
    alias_method :cantango_user, :tango_user

    module Masquerader
      def masquerader
        self.send :include, CanTango::Masquerade::UserApi
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cantango-core-0.1.2 lib/cantango/macros/user.rb
cantango-core-0.1.1 lib/cantango/macros/user.rb
cantango-core-0.1.0 lib/cantango/macros/user.rb