Module: Ladder::Searchable::File
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ladder/searchable/file.rb
Instance Method Summary collapse
-
#as_indexed_json ⇒ Hash
Serialize a Base64-encoded version of data for indexing.
Instance Method Details
#as_indexed_json ⇒ Hash
Serialize a Base64-encoded version of data for indexing
32 33 34 |
# File 'lib/ladder/searchable/file.rb', line 32 def as_indexed_json(*) { file: Base64.encode64(data) } end |