Browse files

Change generating impressionable_type by from controller_name to cont…

…roller_path
  • Loading branch information...
1 parent 27c9352 commit df8489163eef4f718f6167200411544eecf83726 @yous yous committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/impressionist_controller.rb
View
2 app/controllers/impressionist_controller.rb
@@ -78,7 +78,7 @@ def associative_create_statement(query_params={})
# 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_name.singularize.camelize,
+ :impressionable_type => controller_path.singularize.camelize,
:impressionable_id=> params[:id]
)
associative_create_statement(query_params)

0 comments on commit df84891

Please sign in to comment.