Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed JRuby issue with implicit symbol conversion #35

Merged
merged 1 commit into from

2 participants

@kmckelvin

JRuby was failing with an implicit conversion from Symbol to String in flash_responders.rb line 169.

I've fixed the issue and checked all tests still pass under MRI.

@rafaelfranca rafaelfranca merged commit e1e00ff into plataformatec:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 6, 2012
  1. @kmckelvin
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/responders/flash_responder.rb
View
2  lib/responders/flash_responder.rb
@@ -166,7 +166,7 @@ def flash_defaults_by_namespace(status) #:nodoc:
while slices.size > 0
controller_scope = :"flash.#{slices.fill(controller.controller_name, -1).join('.')}.#{controller.action_name}.#{status}"
- actions_scope = :"flash.#{slices.fill(:actions, -1).join('.')}.#{controller.action_name}.#{status}"
+ actions_scope = :"flash.#{slices.fill('actions', -1).join('.')}.#{controller.action_name}.#{status}"
defaults << :"#{controller_scope}_html"
defaults << controller_scope
Something went wrong with that request. Please try again.