Sha256: 39aeec99a956b0a04d2f48f0e36d725940917af0a99ab113ca031e40d25825dd

Contents?: true

Size: 217 Bytes

Versions: 8

Compression:

Stored size: 217 Bytes

Contents

module TodoRails
  class ApplicationController < ActionController::Base
    before_action :set_settings

    def set_settings
      @config = YAML.load_file(Rails.root.join('config/todo-rails.yml'))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
todo_rails-0.1.7 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.6 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.5 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.4 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.3 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.2 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.1 app/controllers/todo_rails/application_controller.rb
todo_rails-0.1.0 app/controllers/todo_rails/application_controller.rb