Module: Blogit

Defined in:
lib/blogit.rb,
lib/blogit/blogs.rb,
lib/blogit/engine.rb,
lib/blogit/archive.rb,
lib/blogit/version.rb,
app/models/blogit/post.rb,
lib/blogit/archive/list.rb,
lib/blogit/archive/year.rb,
lib/blogit/archive/month.rb,
lib/blogit/configuration.rb,
app/models/blogit/comment.rb,
lib/blogit/archive/archiveable.rb,
app/helpers/blogit/posts_helper.rb,
app/helpers/blogit/layout_helper.rb,
lib/blogit/parsers/textile_parser.rb,
app/helpers/blogit/comments_helper.rb,
app/helpers/blogit/application_helper.rb,
lib/generators/blogit/views_generator.rb,
app/controllers/blogit/posts_controller.rb,
lib/generators/blogit/install_generator.rb,
app/controllers/blogit/comments_controller.rb,
app/controllers/blogit/application_controller.rb,
lib/generators/blogit/table_name_migration_generator.rb

Defined Under Namespace

Modules: ApplicationHelper, Archive, Blogs, CommentsHelper, Generators, LayoutHelper, Parsers, PostsHelper, Renderers Classes: ApplicationController, Comment, CommentsController, Configuration, ConfigurationError, Engine, Post, PostsController

Constant Summary collapse

VERSION =
"1.1.2"

Class Method Summary collapse

Class Method Details

.configurationObject

Blogit’s global configuration.

Returns a Configuration



27
28
29
# File 'lib/blogit.rb', line 27

def self.configuration
  @configuration ||= Configuration.new
end

.configure(&block) ⇒ Object

Set global configuration options for Blogit. read more



20
21
22
# File 'lib/blogit.rb', line 20

def self.configure(&block)
  block.call(configuration)
end