Sha256: d1d0ce2c7c356ff91400c29b8efb500b1e8165eda2148752c818be14451e256d

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

require 'active_support/concern'
module Ckeditor
  module AssetSearch
    extend ActiveSupport::Concern

    included do
      def as_indexed_json options={}
        self.as_json(
          only: [:id, :data_file_name, :updated_at],
          methods: [:tag_list, :image?]
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/models/ckeditor/asset_search.rb