Module: ActsAsEncrypted::Acts::Encrypted::AddActsAsMethod
- Defined in:
- lib/acts_as_encrypted.rb
Overview
this module stores the main function and the two modules for the instance and class functions
Instance Method Summary collapse
Instance Method Details
#acts_as_encrypted(options = {}) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/acts_as_encrypted.rb', line 28 def acts_as_encrypted( = {}) # Here you can put additional association for the # target class. # belongs_to :role # add class and instance methods class_eval "include ActsAsEncrypted::Acts::Encrypted::InstanceMethods" end |