Sha256: f54d8f068a3e10fe43c4bf9992defac985e4714ce860aea3fd299828d9560b8f

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogit-1.1.2 app/controllers/blogit/application_controller.rb
blogit-1.1.1 app/controllers/blogit/application_controller.rb
blogit-1.1.0 app/controllers/blogit/application_controller.rb
blogit-1.0.0 app/controllers/blogit/application_controller.rb