Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Created August 28, 2012 16:08
Show Gist options
  • Save chewmanfoo/3499569 to your computer and use it in GitHub Desktop.
Save chewmanfoo/3499569 to your computer and use it in GitHub Desktop.
sh "sed -i '/ @sms_profile = SmsProfile.find_by_carrier_id(carrier_id)/ a\ @#{name_ts} = #{name_cc}.find_by_carrier_id(carrier_id)' app/models/carrier.rb"
# results in
@sms_profile = SmsProfile.find_by_carrier_id(carrier_id)
@ggr_profile = GgrProfile.find_by_carrier_id(carrier_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment