lib/trocla/encryptions.rb in trocla-0.1.2 vs lib/trocla/encryptions.rb in trocla-0.2.0
- old
+ new
@@ -1,10 +1,11 @@
class Trocla::Encryptions
class Base
- attr_reader :trocla
- def initialize(trocla)
+ attr_reader :trocla, :config
+ def initialize(config, trocla)
@trocla = trocla
+ @config = config
end
def encrypt(value)
raise NoMethodError.new("#{self.class.name} needs to implement 'encrypt()'")
end