Sha256: 6c41156617ba6e4695ed812b0e4fc075590062cc511460320d89c430b342070e

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

class Monster < ActiveRecord::Base
  # 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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
maestrano-rails-0.11.0 test/tmp/app/models/monster.rb
maestrano-rails-0.10.0 test/tmp/app/models/monster.rb
maestrano-rails-0.9.5 test/tmp/app/models/monster.rb
maestrano-rails-0.9.4 test/tmp/app/models/monster.rb