Module: VoteFu
- Defined in:
- lib/vote_fu.rb,
lib/vote_fu/engine.rb,
lib/vote_fu/errors.rb,
lib/vote_fu/version.rb,
app/models/vote_fu/vote.rb,
lib/vote_fu/configuration.rb,
lib/vote_fu/concerns/voter.rb,
lib/vote_fu/concerns/karmatic.rb,
lib/vote_fu/concerns/voteable.rb,
app/helpers/vote_fu/votes_helper.rb,
lib/vote_fu/algorithms/reddit_hot.rb,
app/channels/vote_fu/votes_channel.rb,
lib/vote_fu/algorithms/hacker_news.rb,
lib/vote_fu/algorithms/wilson_score.rb,
app/models/vote_fu/application_record.rb,
app/controllers/vote_fu/votes_controller.rb,
app/components/vote_fu/like_button_component.rb,
app/components/vote_fu/star_rating_component.rb,
app/components/vote_fu/vote_widget_component.rb,
app/components/vote_fu/reaction_bar_component.rb,
app/channels/vote_fu/application_cable/channel.rb,
app/controllers/vote_fu/application_controller.rb,
lib/generators/vote_fu/install/install_generator.rb,
app/channels/vote_fu/application_cable/connection.rb,
lib/generators/vote_fu/migration/migration_generator.rb
Defined Under Namespace
Modules: Algorithms, ApplicationCable, Concerns, Generators, VotesHelper
Classes: AlreadyVotedError, ApplicationController, ApplicationRecord, Configuration, Engine, Error, InvalidVoteValueError, LikeButtonComponent, ReactionBarComponent, SelfVoteError, StarRatingComponent, Vote, VoteWidgetComponent, VoteableNotFoundError, VotesChannel, VotesController
Constant Summary
collapse
- VERSION =
"2.0.1"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
10
11
12
|
# File 'lib/vote_fu.rb', line 10
def configuration
@configuration ||= Configuration.new
end
|
14
15
16
|
# File 'lib/vote_fu.rb', line 14
def configure
yield(configuration)
end
|
.reset_configuration! ⇒ Object
18
19
20
|
# File 'lib/vote_fu.rb', line 18
def reset_configuration!
@configuration = Configuration.new
end
|