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

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/cocoon-1.2.15/spec/dummy/app/decorators/comment_decorator.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/cocoon-1.2.15/spec/dummy/app/decorators/comment_decorator.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/cocoon-1.2.15/spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.15 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.14 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.13 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.12 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.11 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.10 spec/dummy/app/decorators/comment_decorator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/cocoon-1.2.9/spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.9 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.8 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.7 spec/dummy/app/decorators/comment_decorator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/cocoon-1.2.6/spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.6 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.5 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.4 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.3 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.2 spec/dummy/app/decorators/comment_decorator.rb
cocoon-1.2.1 spec/dummy/app/decorators/comment_decorator.rb