Module: Authifer
- Defined in:
- lib/authifer.rb,
lib/authifer/app.rb,
lib/authifer/user.rb,
lib/authifer/paths.rb,
lib/authifer/schema.rb,
lib/authifer/renderer.rb,
lib/authifer/data_helper.rb,
lib/authifer/oauth_helper.rb,
lib/authifer/authentication_helper.rb
Defined Under Namespace
Modules: AuthenticationHelper, DataHelper, OAuthHelper, Paths, Schema
Classes: App, Renderer, User
Class Method Summary
collapse
Class Method Details
.base_path ⇒ Object
18
19
20
|
# File 'lib/authifer.rb', line 18
def self.base_path
@base_path ||= File.join(File.dirname(File.expand_path(__FILE__)), 'authifer')
end
|
.connect_to_database(database_url) ⇒ Object
4
5
6
7
8
|
# File 'lib/authifer.rb', line 4
def self.connect_to_database(database_url)
require_relative 'authifer/app'
Authifer::App.set :database, database_url
require_relative 'authifer/user'
end
|
.views_path ⇒ Object
14
15
16
|
# File 'lib/authifer.rb', line 14
def self.views_path
@views_path ||= File.join(base_path, 'views')
end
|
.views_path=(views_path) ⇒ Object
10
11
12
|
# File 'lib/authifer.rb', line 10
def self.views_path=views_path
@views_path = views_path
end
|