Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #43 from Casecommons/force_slave_reads-default-opt…

…ions

Allow force_slave_reads to be called with default options
  • Loading branch information...
commit 045185cc945487fdc2ade4fcf47a05a5374f9f08 2 parents f9acc58 + 31c5e42
@kovyrin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/db_charmer/action_controller/force_slave_reads.rb
View
2  lib/db_charmer/action_controller/force_slave_reads.rb
@@ -4,7 +4,7 @@ module ForceSlaveReads
module ClassMethods
@@db_charmer_force_slave_reads_actions = {}
- def force_slave_reads(params)
+ def force_slave_reads(params = {})
@@db_charmer_force_slave_reads_actions[self.name] = {
:except => params[:except] ? [*params[:except]].map(&:to_s) : [],
:only => params[:only] ? [*params[:only]].map(&:to_s) : []
Please sign in to comment.
Something went wrong with that request. Please try again.