From ce935aaa38c21aef13bbdb4efc34332fcfb5b4c0 Mon Sep 17 00:00:00 2001 From: John McAliley Date: Tue, 7 May 2013 21:40:59 -0300 Subject: [PATCH] change controller_path back to controller_name This is causing missing constant errors for people who are upgrading --- app/controllers/impressionist_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/impressionist_controller.rb b/app/controllers/impressionist_controller.rb index fae5f3d..05a3976 100644 --- a/app/controllers/impressionist_controller.rb +++ b/app/controllers/impressionist_controller.rb @@ -78,7 +78,7 @@ module ImpressionistController # creates a statment hash that contains default values for creating an impression. def direct_create_statement(query_params={}) query_params.reverse_merge!( - :impressionable_type => controller_path.singularize.camelize, + :impressionable_type => controller_name.singularize.camelize, :impressionable_id=> params[:id] ) associative_create_statement(query_params)