Skip to content

Instantly share code, notes, and snippets.

@cmhobbs
Created April 28, 2016 00:44
Show Gist options
  • Save cmhobbs/cbb92fcd9114005f5e3c05363722d546 to your computer and use it in GitHub Desktop.
Save cmhobbs/cbb92fcd9114005f5e3c05363722d546 to your computer and use it in GitHub Desktop.
[1] pry(main)> User.create(name: "test user", email: "[email protected]", password: "testPassword123", password_confirmation: "tes
tPassword123")
(0.6ms) BEGIN
_run__385700085__validation__callbacks value = nil
halted = false
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = downcase_keys
halted = (result == false)
if halted
halted_callback_hook(":downcase_keys")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = strip_whitespace
halted = (result == false)
if halted
halted_callback_hook(":strip_whitespace")
end
end
value = !halted && (!block_given? || yield)
value
_run__385700085__validate__callbacks value = nil
halted = false
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_competencies_users
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_competencies_users")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_competencies
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_competencies")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_assessment_reports
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_assessment_reports")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_best_practices
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_best_practices")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_coupon_uses
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_coupon_uses")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_assessment_purchases
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_assessment_purchases")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_single_user_license_purchases
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_single_user_license_purchases")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_user_license_purchases
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_user_license_purchases")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_opportunity_purchases
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_opportunity_purchases")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_recommendations
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_recommendations")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_users_interests
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_users_interests")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_testimonials
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_testimonials")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_interests
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_interests")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_pac_members
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_pac_members")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_fast_content
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_fast_content")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_comments
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_comments")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_points
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_points")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_badges
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_badges")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_recommendation_applications
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_recommendation_applications")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_opportunity_applications
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_opportunity_applications")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_mentor_action_plans
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_mentor_action_plans")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_coach_action_plans
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_coach_action_plans")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_volunteer_action_plans
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_volunteer_action_plans")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_user_groups
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_user_groups")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_inquiries
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_inquiries")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = validate_associated_records_for_groups
halted = (false)
if halted
halted_callback_hook(":validate_associated_records_for_groups")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = _callback_before_8
halted = (false)
if halted
halted_callback_hook("#<ActiveRecord::Validations::UniquenessValidator:0xbd845284 @attributes=[:uid], @options={:case_sen
sitive=>true, :scope=>:provider, :allow_nil=>true}, @klass=User(id: integer, email: string, encrypted_password: string, reset_password_to
ken: string, reset_password_sent_at: datetime, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_
sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, managed_organizati
on_id: integer, name: string, provider: string, uid: string, location: string, description: text, headline: string, industry: string, org
anization_id: integer, access_key: string, access_secret: string, avatar: string, role: string, interest_ids: integer, instance_url: stri
ng, refresh_token: string, old_salesforce_id: string, encrypted_salesforce_id: string, encrypted_access_key: string, encrypted_uid: strin
g, active_license: boolean, licensed_date: date, mute_notifications: boolean, invitation_token: string, invitation_sent_at: datetime, inv
itation_accepted_at: datetime, invitation_limit: integer, invited_by_id: integer, invited_by_type: string, invitation_created_at: datetim
e)>")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = _callback_before_9
halted = (false)
if halted
halted_callback_hook("#<CarrierWave::Validations::ActiveModel::IntegrityValidator:0xbc120248 @attributes=[:avatar], @opti
ons={}>")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = _callback_before_10
halted = (false)
if halted
halted_callback_hook("#<CarrierWave::Validations::ActiveModel::ProcessingValidator:0xbd86398c @attributes=[:avatar], @opt
ions={}>")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = _callback_before_11
halted = (false)
if halted
halted_callback_hook("#<CarrierWave::Validations::ActiveModel::DownloadValidator:0xbd86320c @attributes=[:avatar], @optio
ns={}>")
end
end
value = !halted && (!block_given? || yield)
value
_run__385700085__save__callbacks value = nil
halted = false
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = automake_organization
halted = (result == false)
if halted
halted_callback_hook(":automake_organization")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = autosave_associated_records_for_invited_by
halted = (result == false)
if halted
halted_callback_hook(":autosave_associated_records_for_invited_by")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = autosave_associated_records_for_managed_organization
halted = (result == false)
if halted
halted_callback_hook(":autosave_associated_records_for_managed_organization")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = autosave_associated_records_for_organization
halted = (result == false)
if halted
halted_callback_hook(":autosave_associated_records_for_organization")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = before_save_collection_association
halted = (result == false)
if halted
halted_callback_hook(":before_save_collection_association")
end
end
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = write_avatar_identifier
halted = (result == false)
if halted
halted_callback_hook(":write_avatar_identifier")
end
end
value = !halted && (!block_given? || yield)
if !halted && true && (value != false)
store_avatar!
end
if !halted && true && (value != false)
remove_previously_stored_avatar
end
value
_run__385700085__create__callbacks value = nil
halted = false
if !halted && true
# This double assignment is to prevent warnings in 1.9.3 as
# the `result` variable is not always used except if the
# terminator code refers to it.
result = result = activate_license
halted = (result == false)
if halted
halted_callback_hook(":activate_license")
end
end
value = !halted && (!block_given? || yield)
if !halted && true && (value != false)
autosave_associated_records_for_mentorship_circles
end
if !halted && true && (value != false)
autosave_associated_records_for_opportunities
end
if !halted && true && (value != false)
autosave_associated_records_for_competencies_users
end
if !halted && true && (value != false)
autosave_associated_records_for_competencies
end
if !halted && true && (value != false)
autosave_associated_records_for_assessment_reports
end
if !halted && true && (value != false)
autosave_associated_records_for_best_practices
end
if !halted && true && (value != false)
autosave_associated_records_for_coupon_uses
end
if !halted && true && (value != false)
autosave_associated_records_for_assessment_purchases
end
if !halted && true && (value != false)
autosave_associated_records_for_single_user_license_purchases
end
if !halted && true && (value != false)
autosave_associated_records_for_user_license_purchases
end
if !halted && true && (value != false)
autosave_associated_records_for_opportunity_purchases
end
if !halted && true && (value != false)
autosave_associated_records_for_recommendations
end
if !halted && true && (value != false)
autosave_associated_records_for_users_interests
end
if !halted && true && (value != false)
autosave_associated_records_for_testimonials
end
if !halted && true && (value != false)
autosave_associated_records_for_interests
end
if !halted && true && (value != false)
autosave_associated_records_for_pac_members
end
if !halted && true && (value != false)
autosave_associated_records_for_fast_content
end
if !halted && true && (value != false)
autosave_associated_records_for_comments
end
if !halted && true && (value != false)
autosave_associated_records_for_points
end
if !halted && true && (value != false)
autosave_associated_records_for_badges
end
if !halted && true && (value != false)
autosave_associated_records_for_recommendation_applications
end
if !halted && true && (value != false)
autosave_associated_records_for_opportunity_applications
end
if !halted && true && (value != false)
autosave_associated_records_for_mentor_action_plans
end
if !halted && true && (value != false)
autosave_associated_records_for_coach_action_plans
end
if !halted && true && (value != false)
autosave_associated_records_for_volunteer_action_plans
end
if !halted && true && (value != false)
autosave_associated_records_for_user_groups
end
if !halted && true && (value != false)
autosave_associated_records_for_inquiries
end
if !halted && true && (value != false)
autosave_associated_records_for_groups
end
if !halted && true && (value != false)
email_new_user
end
value
(0.8ms) ROLLBACK
_run__385700085__rollback__callbacks value = nil
halted = false
value = !halted && (!block_given? || yield)
value
NoMethodError: undefined method `to_datetime' for false:FalseClass
from /home/cmhobbs/src/serve2perform/.gem/ruby/2.3.0/gems/activesupport-4.0.1/lib/active_support/core_ext/date_time/calculations.rb:161:i
n `<=>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment