Module: SimpleForum
- Defined in:
- lib/simple_forum.rb,
app/models/simple_forum.rb,
lib/simple_forum/engine.rb,
lib/simple_forum/version.rb,
app/models/simple_forum/post.rb,
app/models/simple_forum/forum.rb,
app/models/simple_forum/topic.rb,
lib/simple_forum/configuration.rb,
app/models/simple_forum/category.rb,
app/models/simple_forum/moderatorship.rb,
app/models/simple_forum/user_activity.rb,
lib/generators/simple_forum/views_generator.rb,
app/controllers/simple_forum/posts_controller.rb,
lib/generators/simple_forum/install_generator.rb,
app/controllers/simple_forum/forums_controller.rb,
app/controllers/simple_forum/topics_controller.rb,
app/controllers/simple_forum/application_controller.rb,
app/controllers/simple_forum/admin/forums_controller.rb,
app/controllers/simple_forum/admin/categories_controller.rb
Defined Under Namespace
Modules: Admin, Configuration, Extensions, Generators
Classes: ApplicationController, Category, Engine, Forum, ForumsController, Moderatorship, Post, PostsController, Topic, TopicsController, UserActivity
Constant Summary
collapse
- VERSION =
"0.0.4"
- @@layout =
"simple_forum"
- @@main_application_name =
"My Application"
- @@minutes_for_edit_post =
15
- @@minutes_for_delete_post =
15
- @@sign_in_path =
:new_user_session
- @@sign_out_path =
:destroy_user_session
Class Method Summary
collapse
Class Method Details
.authenticated_user(&blk) ⇒ Object
36
37
38
|
# File 'lib/simple_forum.rb', line 36
def self.authenticated_user(&blk)
Configuration.authenticated_user(&blk)
end
|
.forum_admin?(&blk) ⇒ Boolean
54
55
56
|
# File 'lib/simple_forum.rb', line 54
def self.forum_admin?(&blk)
Configuration.forum_admin?(&blk)
end
|
.setup {|_self| ... } ⇒ Object
Yield self on setup for nice config blocks
70
71
72
|
# File 'lib/simple_forum.rb', line 70
def self.setup
yield self
end
|
.table_name_prefix ⇒ Object
2
3
4
|
# File 'app/models/simple_forum.rb', line 2
def self.table_name_prefix
'simple_forum_'
end
|
.user_authenticated?(&blk) ⇒ Boolean
45
46
47
|
# File 'lib/simple_forum.rb', line 45
def self.user_authenticated?(&blk)
Configuration.user_authenticated?(&blk)
end
|
.user_class(&blk) ⇒ Object
27
28
29
|
# File 'lib/simple_forum.rb', line 27
def self.user_class(&blk)
Configuration.user_class(&blk)
end
|