Sha256: 48e2d94a85c2b553e4e6589037410257c927fd28d8dc38abea97e490c8c7a1b1
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
module <%= class_name %> class ApplicationDrapper < Glipper::Base decorates ActiveRecord::Base class << self def engine_root <%= class_name %>::Engine.root end def root_classes [ActiveRecord::Base, ActiveRecord::Relation, Array] end end include <%= class_name %>::DisplayNameGlipper include <%= class_name %>::TypeGlipper include <%= class_name %>::ImageGlipper include <%= class_name %>::TimestampGlipper def decorate(another_resource) <%= class_name %>::ApplicationDrapper.decorate(another_resource, self.helpers) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
billet-0.0.1 | lib/generators/billet/namespace/templates/drappers/application_drapper.rb.erb |