Sha256: 35a55eaf09b10189f9db5f9eda5f5188d4211307243176b40f2e6e99d46813f3
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
module CanTango::Macros module User def tango_user options = {} self.send :include, CanTango::Api::Model::User options = [options] if options.kind_of?(Symbol) 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.1 | lib/cantango/masquerade_ext/macros/user.rb |