change controller_path back to controller_name
This is causing missing constant errors for people who are upgrading
This commit is contained in:
parent
ef34cf85b8
commit
ce935aaa38
|
@ -78,7 +78,7 @@ module ImpressionistController
|
||||||
# creates a statment hash that contains default values for creating an impression.
|
# creates a statment hash that contains default values for creating an impression.
|
||||||
def direct_create_statement(query_params={})
|
def direct_create_statement(query_params={})
|
||||||
query_params.reverse_merge!(
|
query_params.reverse_merge!(
|
||||||
:impressionable_type => controller_path.singularize.camelize,
|
:impressionable_type => controller_name.singularize.camelize,
|
||||||
:impressionable_id=> params[:id]
|
:impressionable_id=> params[:id]
|
||||||
)
|
)
|
||||||
associative_create_statement(query_params)
|
associative_create_statement(query_params)
|
||||||
|
|
Loading…
Reference in New Issue