removed more files

This commit is contained in:
JGW Maxwell 2012-07-11 10:33:35 +01:00
parent 7eae7fb1d0
commit 8f2c219b97
1 changed files with 0 additions and 10 deletions

View File

@ -1,10 +0,0 @@
ImpressionistController::InstanceMethods.send(:define_method, :direct_create_statement) do |query_params={}|
# creates a statment hash that contains default values for creating an impression.
# if :impressionable_id is a valid ObjectId then convert it into one
base = (defined? Moped) ? Moped::BSON :: BSON
query_params.reverse_merge!(
:impressionable_type => controller_name.singularize.camelize,
:impressionable_id=> !base::ObjectId.legal?(params[:id]) ? params[:id] : base::ObjectId.from_string(params[:id])
)
associative_create_statement(query_params)
end