Skip to content

Commit

Permalink
Fix in placeholder and migration to remove the @ from instagram username
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricio.albarnaz committed Dec 14, 2018
1 parent 770c898 commit 7470fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ en:
close_date: Close Date
social:
twitter_placeholder: eg. @the_prof
instagram_placeholder: eg. @the_prof
instagram_placeholder: eg. the_prof
facebook_placeholder: eg. www.facebook.com/PageNameHere
linkedin_placeholder: eg. www.linkedin.com/in/YourNameHere
stripe_connect:
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20181008201815_update_instagram_data.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class UpdateInstagramData < ActiveRecord::Migration
def change
Enterprise.where("instagram like ?", "%instagram.com%").find_each do |e|
e.instagram = "@#{e.instagram.split('/').last}"
e.instagram = e.instagram.split('/').last
e.save
end
end
Expand Down

0 comments on commit 7470fb2

Please sign in to comment.