Sha256: 3f1c5f754a801a82274d2aafc8af1261c9377f2e940e91f4aa52393d9da1ab69

Contents?: true

Size: 733 Bytes

Versions: 20

Compression:

Stored size: 733 Bytes

Contents

class Releaf::RootController < Releaf::ActionController
  def home
    respond_to do |format|
      format.html do
        redirect_to Releaf.application.config.root.default_controller_resolver.call(current_controller: self)
      end
    end
  end

  def features
    []
  end

  # Store settings for menu collapsing and others
  def store_settings
    if params[:settings].is_a? Hash
      params[:settings].each_pair do|key, value|
        value = false if value == "false"
        value = true if value == "true"
        Releaf.application.config.settings_manager.write(controller: self, key: key, value: value)
      end
      render nothing: true, status: 200
    else
      render nothing: true, status: 422
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
releaf-core-1.1.22 app/controllers/releaf/root_controller.rb
releaf-core-1.1.21 app/controllers/releaf/root_controller.rb
releaf-core-1.1.20 app/controllers/releaf/root_controller.rb
releaf-core-1.1.19 app/controllers/releaf/root_controller.rb
releaf-core-1.1.18 app/controllers/releaf/root_controller.rb
releaf-core-1.1.17 app/controllers/releaf/root_controller.rb
releaf-core-1.1.16 app/controllers/releaf/root_controller.rb
releaf-core-1.1.15 app/controllers/releaf/root_controller.rb
releaf-core-1.1.14 app/controllers/releaf/root_controller.rb
releaf-core-1.1.13 app/controllers/releaf/root_controller.rb
releaf-core-1.1.12 app/controllers/releaf/root_controller.rb
releaf-core-1.1.11 app/controllers/releaf/root_controller.rb
releaf-core-1.1.10 app/controllers/releaf/root_controller.rb
releaf-core-1.1.9 app/controllers/releaf/root_controller.rb
releaf-core-1.1.8 app/controllers/releaf/root_controller.rb
releaf-core-1.1.7 app/controllers/releaf/root_controller.rb
releaf-core-1.1.6 app/controllers/releaf/root_controller.rb
releaf-core-1.1.5 app/controllers/releaf/root_controller.rb
releaf-core-1.1.4 app/controllers/releaf/root_controller.rb
releaf-core-1.1.3 app/controllers/releaf/root_controller.rb