Sha256: e951c51c82dab8249ebe29f3da00ec1c8e743d2d986518d0e4f925afaa848605

Contents?: true

Size: 280 Bytes

Versions: 7

Compression:

Stored size: 280 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def default_url_options
    { theme: params[:theme] }.merge(super)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
themes_on_rails-0.4.0 spec/dummy/app/controllers/application_controller.rb
themes_on_rails-0.3.1 spec/dummy/app/controllers/application_controller.rb
themes_on_rails-0.3.0 spec/dummy/app/controllers/application_controller.rb
themes_on_rails-0.2.2 spec/dummy/app/controllers/application_controller.rb
themes_on_rails-0.2.1 spec/dummy/app/controllers/application_controller.rb
themes_on_rails-0.2.0 spec/dummy/app/controllers/application_controller.rb
themes_on_rails-0.1.0 spec/dummy/app/controllers/application_controller.rb