Sha256: de71cc5f462ff973c40b3206204df224f161576716e0d6c3053ea441cb6dc603
Contents?: true
Size: 318 Bytes
Versions: 24
Compression:
Stored size: 318 Bytes
Contents
class CommentDecorator def initialize(comment) @comment = comment end def formatted_created_at @comment.created_at.to_formatted_s(:short) end def method_missing(method_sym, *args) if @comment.respond_to?(method_sym) @comment.send(method_sym, *args) else super end end end
Version data entries
24 entries across 24 versions & 4 rubygems