Permalink
Browse files

fixed method name incompatibility with Rails 3

  • Loading branch information...
1 parent aeda5b5 commit 6fb305cfd46abc69cb9ebb3d84a2a3174e1ac0db @morhekil morhekil committed Jul 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/in_place_editing.rb
View
@@ -16,7 +16,7 @@ def self.included(base)
module ClassMethods
def in_place_edit_for(object, attribute, options = {})
define_method("set_#{object}_#{attribute}") do
- unless [:post, :put].include?(request.method) then
+ unless [:post, :put].include?(request.method_symbol) then
return render(:text => 'Method not allowed', :status => 405)
end
@item = object.to_s.camelize.constantize.find(params[:id])

0 comments on commit 6fb305c

Please sign in to comment.