Class: KirguduBase::Security::AuthenticationConfig
- Inherits:
-
Object
- Object
- KirguduBase::Security::AuthenticationConfig
- Defined in:
- app/models/kirgudu_base/security/authentication_config.rb
Class Method Summary collapse
Instance Method Summary collapse
- #allow_facebook ⇒ Object
- #allow_facebook=(value) ⇒ Object
- #allow_google ⇒ Object
- #allow_google=(value) ⇒ Object
- #allow_twitter ⇒ Object
- #allow_twitter=(value) ⇒ Object
- #allow_vkontakte ⇒ Object
- #allow_vkontakte=(value) ⇒ Object
-
#initialize(options = {}) ⇒ AuthenticationConfig
constructor
A new instance of AuthenticationConfig.
- #layout_view_path ⇒ Object
- #layout_view_path=(value) ⇒ Object
- #path_to_views ⇒ Object
- #path_to_views=(value) ⇒ Object
- #url_for_default_redirection_after_login ⇒ Object
- #url_for_default_redirection_after_login=(value) ⇒ Object
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(={}) 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
.config ⇒ Object
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_facebook ⇒ Object
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_google ⇒ Object
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_twitter ⇒ Object
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_vkontakte ⇒ Object
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_path ⇒ Object
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_views ⇒ Object
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_login ⇒ Object
62 63 64 |
# File 'app/models/kirgudu_base/security/authentication_config.rb', line 62 def url_for_default_redirection_after_login @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 |