Sha256: 40d73f88da293c58668b73236b1c1b0eabe407f8d6d2c1adff1869eaf623e4d9

Contents?: true

Size: 133 Bytes

Versions: 5

Compression:

Stored size: 133 Bytes

Contents

class OperationDecorator < ApplicationDecorator
  def past_tense
    object.type.humanize + (type[-1] == 'e' ? 'd' : 'ed')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aptible-rails-0.4.12 lib/aptible/rails/decorators/operation_decorator.rb
aptible-rails-0.4.11 lib/aptible/rails/decorators/operation_decorator.rb
aptible-rails-0.4.10 lib/aptible/rails/decorators/operation_decorator.rb
aptible-rails-0.4.9 lib/aptible/rails/decorators/operation_decorator.rb
aptible-rails-0.4.8 lib/aptible/rails/decorators/operation_decorator.rb