Merge pull request #71 from yous/fix_unique_impressionable_type

Fix uniqueness of impressionable_type
This commit is contained in:
John McAliley 2013-04-01 18:59:31 -07:00
commit 26835a237b
1 changed files with 1 additions and 1 deletions

View File

@ -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_name.singularize.camelize,
:impressionable_type => controller_path.singularize.camelize,
:impressionable_id=> params[:id]
)
associative_create_statement(query_params)