README.markdown in twilio_contactable-0.7.6 vs README.markdown in twilio_contactable-0.8.0

- old
+ new

@@ -28,16 +28,23 @@ Include Twilio::Contactable into your User class or whatever you're using to represent an entity with a phone number. class User < ActiveRecord::Base + + include TwilioContactable::Contactable + twilio_contactable + end If you're using custom column names you can easily overwrite any of them: class User < ActiveRecord::Base + + include TwilioContactable::Contactable + twilio_contactable do |config| config.phone_number_column = :mobile_number config.formatted_phone_number_column = :formatted_mobile_number config.sms_blocked_column = :should_we_not_txt_this_user config.sms_confirmation_code_column = :the_sms_confirmation_code @@ -45,14 +52,14 @@ config.sms_confirmed_phone_number_column = :the_mobile_number_thats_been_confirmed_for_sms config.voice_blocked_column = :should_we_not_call_this_user config.voice_confirmation_code_column = :the_voice_confirmation_code config.voice_confirmation_attempted_column = :when_was_the_voice_confirmation_attempted config.voice_confirmed_phone_number_column = :the_mobile_number_thats_been_confirmed_for_voice - - # Defaults to the name on the left (minus the '_column' at the end) - # e.g., the sms_blocked_column is 'sms_blocked' - # - # You don't need all those columns, omit any that you're sure you won't want. + # Defaults to the name on the left (minus the '_column' at the end) + # e.g., the sms_blocked_column is 'sms_blocked' + # + # You don't need all those columns, omit any that you're sure you won't want. + end end You'll need to add those columns to your database table using a migration that looks something like this: