Sha256: 7b94f01c96fbd12ed8326537e5839d8d3f5815b587bbb46a2fb4b9c3a9030601

Contents?: true

Size: 865 Bytes

Versions: 21

Compression:

Stored size: 865 Bytes

Contents

# inspect the methods loaded in this module and their usage
# in the rails console by just typing:
# >> <%= @module_name %>.elastics.doc
# you can eventually restrict the doc to a single method by passing its name:
# >> <%= @module_name %>.elastics.doc :search
# see the detailed doc for this feature at http://elastics.github.io/elastics/doc/2-elastics/4-Self-Documentation.html

module <%= @module_name %>

  extend self

  # if you don't use elastics scopes and you stick with elastics templates, you can comment the next line
  include Elastics::Scopes

  # enables the templating
  include Elastics::Templates
  # loads the <%= "#{@module_name.underscore}.yml" %> file
  elastics.load_search_source

  # you may need to add more method here, usually custom scopes
  # or wrapper methods that use one of the autogenerated methods from the loaded templates

end

Version data entries

21 entries across 21 versions & 1 rubygems

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