Class: Blogit::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/blogit/application_controller.rb

Overview

Inherits from the application's controller instead of ActionController::Base

Direct Known Subclasses

CommentsController, PostsController

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) blogit_conf

A helper method to access the configuration at the class level.

Returns:

  • a Blogit::Configuration


16
17
18
# File 'app/controllers/blogit/application_controller.rb', line 16

def self.blogit_conf
  Blogit::configuration
end

Instance Method Details

- (Object) blogit_conf

A helper method to access the configuration at the controller instance level.

Returns:

  • a Blogit::Configuration


24
25
26
# File 'app/controllers/blogit/application_controller.rb', line 24

def blogit_conf
  self.class.blogit_conf
end