Sha256: ed875a3a06f28af16a7d4c47e04990e3944d0735883e44c5de060c4b043408b7

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 Bytes

Contents

# some initialization for kblog


Kblog.blog_title = "A new KBlog is born"
Kblog.user_class = 'User'     # class of blog-author

# select EITHER section basic or role-based authentication
#
#######################################################
# role-based rights to create/alter blog-articles		#
# user_class must respond_to :roles - and each role	#
# string representation role.to_s == Kblog.auth_role	#
#######################################################

#Kblog.auth_type = 'role'   
#Kblog.auth_role = 'blogger'   # role needed to alter blogs

#########################################################
# http-basic-auth                                       #
#########################################################
Kblog.auth_type = 'basic'
Kblog.authname = 'blogger'
Kblog.authpassword = 'changeme'

ActiveSupport.on_load :action_controller do
	helper Kblog::ArticlesHelper
end


require 'RedCloth'
require 'will_paginate'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kblog-0.0.4 test/dummy/config/initializers/kblog_init.rb