Class: KirguduBase::Security::AuthenticationConfig

Inherits:
Object
  • Object
show all
Defined in:
app/models/kirgudu_base/security/authentication_config.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ AuthenticationConfig

Returns a new instance of AuthenticationConfig.



5
6
7
8
9
10
11
12
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 5

def initialize(options={})
	self.layout_view_path = nil
	self.path_to_views = nil
	self.allow_facebook = false
	self.allow_twitter = false
	self.allow_google = false
	self.allow_vkontakte = false
end

Class Method Details

.configObject



71
72
73
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 71

def self.config
	::KirguduBase::Security::AuthenticationConfig.instance
end

Instance Method Details

#allow_facebookObject



30
31
32
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 30

def allow_facebook
	@allow_facebook
end

#allow_facebook=(value) ⇒ Object



34
35
36
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 34

def allow_facebook= value
	@allow_facebook = value ? true : false
end

#allow_googleObject



46
47
48
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 46

def allow_google
	@allow_google
end

#allow_google=(value) ⇒ Object



50
51
52
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 50

def allow_google= value
	@allow_google = value ? true : false
end

#allow_twitterObject



38
39
40
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 38

def allow_twitter
	@allow_twitter
end

#allow_twitter=(value) ⇒ Object



42
43
44
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 42

def allow_twitter= value
	@allow_twitter = value ? true : false
end

#allow_vkontakteObject



54
55
56
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 54

def allow_vkontakte
	@allow_vkontakte
end

#allow_vkontakte=(value) ⇒ Object



58
59
60
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 58

def allow_vkontakte= value
	@allow_vkontakte = value ? true : false
end

#layout_view_pathObject



15
16
17
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 15

def layout_view_path
	@layout_view_path
end

#layout_view_path=(value) ⇒ Object



18
19
20
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 18

def layout_view_path= value
	@layout_view_path = value
end

#path_to_viewsObject



22
23
24
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 22

def path_to_views
	@path_to_views
end

#path_to_views=(value) ⇒ Object



26
27
28
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 26

def path_to_views= value
	@path_to_views = value
end

#url_for_default_redirection_after_loginObject



62
63
64
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 62

def 
	@url_for_default_redirection_after_login
end

#url_for_default_redirection_after_login=(value) ⇒ Object



66
67
68
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 66

def url_for_default_redirection_after_login= value
	@url_for_default_redirection_after_login = value
end