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'