Sha256: 23238affc7e8d74f5378747f720cf2052373d3ba6137805de13322bf33563a5c

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class Admin::AdminController < ActionController::Base
  helper :all # include all helpers, all the time
  protect_from_forgery # See ActionController::RequestForgeryProtection for details
  
  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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
somatics3-0.0.10 lib/generators/somatics/install/templates/controller_admin.rb
somatics3-generators-0.0.10 lib/generators/somatics/install/templates/controller_admin.rb