module Cyrax::Extensions::HasDecorator
Public Instance Methods
decorable?()
click to toggle source
# File lib/cyrax/extensions/has_decorator.rb, line 13 def decorable? !decorator_class_name.nil? end
decorator_class()
click to toggle source
# File lib/cyrax/extensions/has_decorator.rb, line 17 def decorator_class decorator_class_name.to_s.classify.constantize end
decorator_class_name()
click to toggle source
# File lib/cyrax/extensions/has_decorator.rb, line 9 def decorator_class_name options[:decorator] || self.class.decorator_class_name end