From 8f2c219b97d0c85f6698512f761c6b4d80be1f22 Mon Sep 17 00:00:00 2001 From: JGW Maxwell Date: Wed, 11 Jul 2012 10:33:35 +0100 Subject: [PATCH] removed more files --- .../mongoid/mongoid2-impressionist_controller.rb | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 lib/impressionist/controllers/mongoid/mongoid2-impressionist_controller.rb diff --git a/lib/impressionist/controllers/mongoid/mongoid2-impressionist_controller.rb b/lib/impressionist/controllers/mongoid/mongoid2-impressionist_controller.rb deleted file mode 100644 index de005a7..0000000 --- a/lib/impressionist/controllers/mongoid/mongoid2-impressionist_controller.rb +++ /dev/null @@ -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 \ No newline at end of file