Sha256: ea144971f89272c61ed72332c7e7e4b61e86755f2e06148959172e0a55115099

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module Workarea
  decorate Search::Admin::Order, with: :global_e do
    def keywords
      super + [model.global_e_id].compact
    end

    def search_text
      [super, model.global_e_id].compact.join(' ')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-global_e-1.3.0 app/models/workarea/search/admin/order.decorator
workarea-global_e-1.2.1 app/models/workarea/search/admin/order.decorator