Define encrypted ActiveRecord methods inside a module, so we can use super

You can then, for example, migrate to encrypted records when they
change.

class User < ActiveRecord::Base
  attr_encrypted :bank_account_number
  def bank_account_number
     super || retrieve_clear_bank_account_number_from_old_column
  end
end
Uses coercible gem to coerce values into the specified type
Don't call `to_s` when not needed
Uses correct data type for time test
Adds type support to ActiveRecord extension
Restores line that was accidentally commented out
Merge pull request #23 from mscottford/topic/coercion

Uses coercible gem to coerce values into the specified type
Also add JSON and YAML serialization options which are useful for hashes and arrays
Fixes #25 Make highline gem a soft dependency
Merge pull request #22 from gaizka/master

Define encrypted ActiveRecord methods inside a module, so we can use super
Complete #21 Add non-string data type support for Mongoid models
Fixes #21 include is a private method on a class
Fix decrypt_as logic for mongoid fields
Merge pull request #27 from astjohn/master

Fix decrypt_as logic for mongoid fields
Bump to V3.3.1
Add generator to create a config file for heroku
  rails g symmetric_encryption:heroku_config
Failing tests for coercion.
Attempt to coerce attribute values on setters.
Merge pull request #29 from astjohn/fix_coercion

Coerce values immediately when the setter is called to the required type
Update Readme and template output