Sha256: c7dbbd503b0a5d97e9de1ea56a91b8f8cce6bc4df4a7292929fb06692dac360c

Contents?: true

Size: 479 Bytes

Versions: 8

Compression:

Stored size: 479 Bytes

Contents

class UnderConstructionController < ApplicationController
  layout false
  
  def index
    assign_config_options_to_view
    @email = UnderConstructionEmailStorage.new
    
    respond_to do |format|
      format.html { render template: "under_construction/#{@theme}/index" }
    end
  end

private
  def assign_config_options_to_view
    configs = UnderConstruction.config_file
    configs.each_pair do |key, value|
      instance_variable_set '@'+key, value
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
under_construction-0.2.2 app/controllers/under_construction_controller.rb
under_construction-0.2.1 app/controllers/under_construction_controller.rb
under_construction-0.1.4 app/controllers/under_construction_controller.rb
under_construction-0.1.3 app/controllers/under_construction_controller.rb
under_construction-0.1.2 app/controllers/under_construction_controller.rb
under_construction-0.1.1 app/controllers/under_construction_controller.rb
under_construction-0.1.0 app/controllers/under_construction_controller.rb
under_construction-0.0.1 app/controllers/under_construction_controller.rb