Sha256: 280a826803c02c8e01636c83bfb8231fb299fd72c912a05e0779235548b8e46a

Contents?: true

Size: 617 Bytes

Versions: 14

Compression:

Stored size: 617 Bytes

Contents

class Monster
include Mongoid::Document
  # Enable Maestrano for this user
  maestrano_user_via :provider, :uid do |user,maestrano|
    user.name = maestrano.first_name
    user.surname = maestrano.last_name
    user.email = maestrano.email
    #user.company = maestrano.company_name
    #user.country_alpha2 = maestrano.country
    #user.some_required_field = 'some-appropriate-default-value'
  end

  # Setup protected attributes for your model
  attr_protected :provider, :uid

  ## User source identification fields
  field :provider,  type: String, default: ""
  field :uid,       type: String, default: ""

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
maestrano-rails-test-0.9.4 test/tmp/app/models/monster.rb
maestrano-rails-test-0.9.3 test/tmp/app/models/monster.rb
maestrano-rails-0.9.3 test/tmp/app/models/monster.rb
maestrano-rails-0.9.2 test/tmp/app/models/monster.rb
maestrano-rails-0.9.1 test/tmp/app/models/monster.rb
maestrano-rails-0.9.0 test/tmp/app/models/monster.rb
maestrano-rails-0.8.0 test/tmp/app/models/monster.rb
maestrano-rails-0.7.0 test/tmp/app/models/monster.rb
maestrano-rails-0.6.0 test/tmp/app/models/monster.rb
maestrano-rails-0.5.0 test/tmp/app/models/monster.rb
maestrano-rails-0.4.0 test/tmp/app/models/monster.rb
maestrano-rails-0.3.0 test/tmp/app/models/monster.rb
maestrano-rails-0.2.0 test/tmp/app/models/monster.rb
maestrano-rails-0.1.0 test/tmp/app/models/monster.rb