lib/typus/controller/headless.rb in typus-3.1.0.rc14 vs lib/typus/controller/headless.rb in typus-3.1.0.rc15
- old
+ new
@@ -1,10 +1,10 @@
module Typus
module Controller
module Headless
def self.included(base)
- base.before_filter :set_resources_action_for_headless_on_index, :only => [:index]
+ base.before_filter :set_resources_action_for_headless_on_index, :only => [:index, :trash]
base.before_filter :set_resources_action_for_headless, :only => [:new, :create, :edit, :show]
base.helper_method :headless_mode?
base.layout :set_headless_layout
end