OSDN Git Service

fix form extend
[pettanr/pettanr.git] / app / controllers / application_controller.rb
index 8edc583..d34f15c 100644 (file)
@@ -163,12 +163,14 @@ class ApplicationController < ActionController::Base
   def set_new
     set_model
     @item = @my_model_class.new
+    @item.boosts 'post'
     @item.supply_default
   end
   
   def set_edit
     set_model
     @item = @my_model_class.edit(params[:id], @operators)
+    @item.boosts 'post'
   end
   
   def render_form