app/controllers/sessions_controller.rb
# registration is a hash containing the valid sreg keys given above
# use this to map them to fields of your user model
registration is a hash containing the valid sreg keys given above
use this to map them to fields of your user model
registration is a hash containing the valid sreg keys given above use this to map them to fields of your user model
def assign_registration_attributes!(registration, identity_url)
    @user.send(:identity_url=, identity_url)
    model_to_registration_mapping.each do |model_attribute, registration_attribute|
      unless registration[registration_attribute].blank?
        @user.send("#{model_attribute}=", registration[registration_attribute])
      end
    end
  end
def assign_registration_attributes! ( registration , identity_url ) @user . send ( :identity_url= , identity_url ) model_to_registration_mapping . each do | model_attribute , registration_attribute | unless registration [ registration_attribute ] . blank? @user . send ( "#{model_attribute}=" , registration [ registration_attribute ] ) end end end
registration is a hash containing the valid sreg keys given above
use this to map them to fields of your user model
registration is a hash containing the valid sreg keys given above use this to map them to fields of your user model
registration
identity_url