lib/typus/controller/headless.rb in typus-3.1.0 vs lib/typus/controller/headless.rb in typus-3.1.1
- old
+ new
@@ -8,15 +8,15 @@
base.helper_method :headless_mode?
base.layout :headless_layout
end
def set_resources_action_for_headless_on_index
- add_resources_action("Add New", {:action => "new"}, {})
+ add_resources_action("Add New", {:action => "new"})
end
private :set_resources_action_for_headless_on_index
def set_resources_action_for_headless
- add_resources_action("All Entries", {:action => 'index', :id => nil}, {})
+ add_resources_action("All Entries", {:action => 'index', :id => nil})
end
private :set_resources_action_for_headless
def headless_layout
headless_mode? ? "admin/headless" : "admin/base"