Sha256: a9b25575594bba8d7807245cc34eb85e738a936bf3dde74d538d9ec9c1c0adec

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

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

Kblog.auth_type = nil
#Kblog.auth_type = 'basic'#
#Kblog.auth_type = 'role'

if Kblog.auth_type == 'basic'
	Kblog.authname = 'blogger'
	Kblog.authpassword = 'changeme'
end

if Kblog.auth_type == 'role'
	# expects a User-class which responds to 'roles'
	# roles should be an array - each role should respond to :name
	# change to necessary role of current_user
	Kblog.auth_role == 'blogger' 
end

require 'RedCloth'
require 'will_paginate'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kblog-0.0.1 lib/generators/kblog/templates/initializer.rb