Module: Googletastic::Helpers::ClassMethods

Defined in:
lib/googletastic/helpers.rb

Instance Method Summary collapse

Instance Method Details

#googletastic(model, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/googletastic/helpers.rb', line 8

def googletastic(model, options = {})
  Googletastic.options_for(self, options)
  
  include ("Googletastic::Helpers::#{model.to_s.camelize}ModelHelper").constantize
end