Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ActiveBlog's helper methods extremely obvious by using active_blog_ prefix Reduce duplication active_blog.rb initializer
- Loading branch information
Showing
7 changed files
with
48 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
lib/generators/active_blog/install/templates/active_blog.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
ActiveBlog.setup do |config| | ||
# Name of your blog. | ||
# config.blog_title = "Your Blog Title" | ||
# Title of your blog. | ||
# config.title = "Your Blog Title" | ||
|
||
# Description | ||
# config.blog_description = "Your Blog Description" | ||
|
||
# Assuming your layout has a sidebar, active_blog will yield via content_for. | ||
# config.blog_content_for_sidebar = :sidebar | ||
# config.description = "Your Blog Description" | ||
|
||
# Blog author's name | ||
# config.blog_author_name = "John Doe" | ||
# config.author_name = "John Doe" | ||
|
||
# Blog author's URI | ||
# config.blog_author_name = "http://example.com" | ||
# config.author_name = "http://example.com" | ||
|
||
# Blog author's email | ||
# config.blog_author_email = "mchung@example.com" | ||
# config.author_email = "mchung@example.com" | ||
|
||
# Assuming your layout has a sidebar, active_blog will yield via content_for. | ||
# config.content_for_sidebar = :sidebar | ||
end |