Sha256: 94a62325589d3ef22f03140a661c015f82093bc84fcca8f1ddccd04de7387b88
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'abstract_auth' require 'bb-ruby' require 'bb-ruby/bb-ruby' module SimpleForum AbstractAuth.setup do |config| config.requires :user_class #default authenticated_user implementation config.implement :user_class do User end config.requires :authenticated_user #default authenticated_user implementation config.implement :authenticated_user do current_user end config.requires :user_authenticated? #default authenticated_user implementation config.implement :user_authenticated? do user_signed_in? end end #mattr_accessor :route_namespace #@@route_namespace = "forum" # mattr_accessor :layout @@layout = "simple_forum" mattr_accessor :root_application_name @@root_application_name = "My Application" mattr_accessor :minutes_for_edit_post @@minutes_for_edit_post = 15 mattr_accessor :minutes_for_delete_post @@minutes_for_delete_post = 15 # Yield self on setup for nice config blocks def self.setup yield self end require File.expand_path("../../app/models/simple_forum.rb", __FILE__) end require 'simple_forum/engine'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_forum-0.0.2 | lib/simple_forum.rb |