module Cyrax::Extensions::HasDecorator::ClassMethods
Public Instance Methods
decorator(klass)
click to toggle source
# File lib/cyrax/extensions/has_decorator.rb, line 18 def decorator(klass) if klass.is_a?(String) ActiveSupport::Deprecation.warn "sending String in #decorator method is deprecated. send Class instead" klass = klass.constantize end self._decorator_class = klass end