Skip to content
Browse files

Ruby 1.9 fix

  • Loading branch information...
1 parent 0834625 commit b033f18128d6d6e188360db84403fa61ec4af073 @rubymood committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jintastic.rb
View
4 lib/jintastic.rb
@@ -3,8 +3,8 @@
class ActionView::Base
def in_place_editor_for(path_spec_or_object, attributes, html_text = nil)
instance = case path_spec_or_object
- when ActiveRecord::Base: path_spec_or_object
- when Array: path_spec_or_object.last
+ when ActiveRecord::Base then path_spec_or_object
+ when Array then path_spec_or_object.last
end
if attributes.class==Symbol

0 comments on commit b033f18

Please sign in to comment.
Something went wrong with that request. Please try again.