Skip to content

Commit

Permalink
update readme for raise_connection_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blahed committed Jan 26, 2013
1 parent 4064cec commit f784f7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ Von.configure do |config|
config.redis = Redis.current
# Initialize a new Redis connection given options
config.redis = { :host => 'localhost', :port => 6379 }

# rescue Redis connection errors
# if the connection fails, no errors are raised by default
self.raise_connection_errors = false

# set the top level Redis key namespace
config.namespace = 'von'
Expand Down
2 changes: 1 addition & 1 deletion lib/von/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def init!
@periods = {}
# all keys are prefixed with this namespace
self.namespace = 'von'
# rescue Redis connectinon errors
# rescue Redis connection errors
self.raise_connection_errors = false
# 2013
self.yearly_format = '%Y'
Expand Down

0 comments on commit f784f7f

Please sign in to comment.