Sha256: cb47ac33aaad448f55b535aa47851cfe19d01e73b0405109fe1a30ad54455694

Contents?: true

Size: 433 Bytes

Versions: 25

Compression:

Stored size: 433 Bytes

Contents

# see the detailed Extenders documentation at http://elastics.github.io/elastics/doc/2-elastics/3-Result-Extenders.html

module <%= @extender_name  %>

  # set this method to restrict this extender to certain types of results
  # see the other Elastics extenders for reference
  def self.should_extend?(response)
    false
  end

  # adds your methods

  def an_extending_method
    # self is the structure returned by ES
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
elastics-rails-1.3.3 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.3.2 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.3.1 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.3.0 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.2.1 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.2.0 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.11 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.10 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.9 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.8 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.7 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.6 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.5 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.4 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.3 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.2 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.1 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.1.0 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.0.10 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb
elastics-rails-1.0.9 lib/generators/elastics/setup/templates/elastics_dir/elastics_extender.rb.erb