Module: Recommendable
- Defined in:
- lib/recommendable.rb,
lib/recommendable/rater.rb,
lib/recommendable/ratable.rb,
lib/recommendable/version.rb,
lib/recommendable/rater/hider.rb,
lib/recommendable/rater/liker.rb,
lib/recommendable/configuration.rb,
lib/recommendable/rater/disliker.rb,
lib/recommendable/workers/resque.rb,
lib/recommendable/ratable/likable.rb,
lib/recommendable/workers/sidekiq.rb,
lib/recommendable/helpers/queriers.rb,
lib/recommendable/rater/bookmarker.rb,
lib/recommendable/rater/recommender.rb,
lib/recommendable/ratable/dislikable.rb,
lib/recommendable/workers/torque_box.rb,
lib/recommendable/workers/delayed_job.rb,
lib/recommendable/helpers/calculations.rb,
lib/recommendable/helpers/redis_key_mapper.rb
Defined Under Namespace
Modules: Helpers, Ratable, Rater, Workers
Classes: Configuration, Version
Constant Summary
collapse
- VERSION =
Version.to_s.freeze
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
75
76
77
|
# File 'lib/recommendable/configuration.rb', line 75
def config
@config ||= Configuration.new
end
|
70
71
72
73
|
# File 'lib/recommendable/configuration.rb', line 70
def configure
@config ||= Configuration.new
yield @config
end
|
.enqueue(user_id) ⇒ Object
.query(klass, ids) ⇒ Object
19
20
21
22
23
|
# File 'lib/recommendable.rb', line 19
def query(klass, ids)
Recommendable::Helpers::Queriers.send(Recommendable.config.orm, klass, ids)
rescue NoMethodError
warn 'Your ORM is not currently supported. Please open an issue at https://github.com/davidcelis/recommendable'
end
|
.redis ⇒ Object
17
|
# File 'lib/recommendable.rb', line 17
def redis() config.redis end
|