Sha256: c9070872040873d3c77ebb583bd68f1fe3fc96b20602ad8ab92f9503e8886289

Contents?: true

Size: 249 Bytes

Versions: 54

Compression:

Stored size: 249 Bytes

Contents

module Para
  module Admin
    module DecoratorsHelper
      def decorated(object)
        object.tap(&method(:decorate))
      end

      def decorate(object)
        ActiveDecorator::Decorator.instance.decorate(object)
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
para-0.12.4 app/helpers/para/admin/decorators_helper.rb
para-0.12.3 app/helpers/para/admin/decorators_helper.rb
para-0.12.2 app/helpers/para/admin/decorators_helper.rb
para-0.12.1 app/helpers/para/admin/decorators_helper.rb
para-0.12.0 app/helpers/para/admin/decorators_helper.rb
para-0.11.4 app/helpers/para/admin/decorators_helper.rb
para-0.11.3 app/helpers/para/admin/decorators_helper.rb
para-0.11.2 app/helpers/para/admin/decorators_helper.rb
para-0.11.1 app/helpers/para/admin/decorators_helper.rb
para-0.11.0 app/helpers/para/admin/decorators_helper.rb
para-0.10.0 app/helpers/para/admin/decorators_helper.rb
para-0.9.4 app/helpers/para/admin/decorators_helper.rb
para-0.9.3.3 app/helpers/para/admin/decorators_helper.rb
para-0.9.3.2 app/helpers/para/admin/decorators_helper.rb
para-0.9.3.1 app/helpers/para/admin/decorators_helper.rb
para-0.9.2 app/helpers/para/admin/decorators_helper.rb
para-0.9.0 app/helpers/para/admin/decorators_helper.rb
para-0.8.15 app/helpers/para/admin/decorators_helper.rb
para-0.8.14 app/helpers/para/admin/decorators_helper.rb
para-0.8.13 app/helpers/para/admin/decorators_helper.rb