lib/representable/decorator.rb in representable-2.2.3 vs lib/representable/decorator.rb in representable-2.3.0
- old
+ new
@@ -1,8 +1,12 @@
require "representable"
module Representable
class Decorator
+ class << self
+ include Cloneable
+ end
+
attr_reader :represented
alias_method :decorated, :represented
# TODO: when moving all class methods into ClassMethods, i get a segfault.
def self.prepare(represented)