Sha256: aa3f93b4df713ecd1a29a43117fbdaa613441f18e5615e830c56fca4979858d9

Contents?: true

Size: 221 Bytes

Versions: 12

Compression:

Stored size: 221 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  layout :layout_by_resource
  
  def layout_by_resource
    if devise_controller?
      "login"
    else
      "application"
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ideyabox-0.1.12 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.11 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.10 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.9 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.8 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.7 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.6 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.5 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.4 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.3 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.2 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb
ideyabox-0.1.0 lib/generators/ideyabox/admin/templates/controllers/application_controller.rb