Sha256: 02d274f19aa2216b919283e265d40a3407044241622669eaf8200db18e472ba1

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

class Models::User
  include Mongoid::Document

  field :name, type: String

  include Mongoid::Authorized

  def anonymous?
    name == 'anonymous'
  end        

  class << self
    def avatar_url *a; end
    
    inject current: :user
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rad_kit-0.0.6 spec/spec_helper/user.rb
rad_kit-0.0.5 spec/spec_helper/user.rb
rad_kit-0.0.4 spec/spec_helper/user.rb
rad_kit-0.0.3 spec/spec_helper/user.rb
rad_kit-0.0.2 spec/spec_helper/user.rb
rad_kit-0.0.1 spec/spec_helper/user.rb