KatanaCode/blogit

View on GitHub
app/controllers/blogit/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Blogit

  # Inherits from the application's controller instead of ActionController::Base
  class ApplicationController < ::ApplicationController

    helper Blogit::ApplicationHelper
    helper Blogit::LayoutHelper
    helper Blogit::PostsHelper
    helper Blogit::CommentsHelper
    
    helper_method :blogit_conf

    # A helper method to access the {Blogit::configuration} at the class level.
    #
    # Returns a Blogit::Configuration
    def self.blogit_conf
      Blogit::configuration
    end

    # A helper method to access the {Blogit::configuration} at the controller instance
    #   level.
    #
    # Returns a Blogit::Configuration
    def blogit_conf
      self.class.blogit_conf
    end

  end
  
end