lib/generators/somatics/install/templates/controller_admin.rb in somatics3-generators-0.0.9 vs lib/generators/somatics/install/templates/controller_admin.rb in somatics3-generators-0.0.10

- old
+ new

@@ -3,11 +3,15 @@ class Admin::AdminController < ActionController::Base helper :all # include all helpers, all the time protect_from_forgery # See ActionController::RequestForgeryProtection for details - include RedmineFilter - include UserAuthenticatedSystem - before_filter :user_login_required - layout Proc.new { |c| c.request.format.js? ? false : 'admin' } + before_filter :authenticate_user! + + uses_tiny_mce :options => { + :theme => 'advanced', + :theme_advanced_resizing => true, + :theme_advanced_resize_horizontal => false, + :plugins => %w{ table fullscreen } + } end