Sha256: 4eaf2f7b09e59285ddbd937728c97e005616dcfa4276feea2f46de48a40e0bb0

Contents?: true

Size: 1.32 KB

Versions: 21

Compression:

Stored size: 1.32 KB

Contents

module KirguduBase
	module Security
		class AuthenticationConfig

			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


			def layout_view_path
				@layout_view_path
			end
			def layout_view_path= value
				@layout_view_path = value
			end

			def path_to_views
				@path_to_views
			end

			def path_to_views= value
				@path_to_views = value
			end

			def allow_facebook
				@allow_facebook
			end

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

			def allow_twitter
				@allow_twitter
			end

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

			def allow_google
				@allow_google
			end

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

			def allow_vkontakte
				@allow_vkontakte
			end

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

			def url_for_default_redirection_after_login
				@url_for_default_redirection_after_login
			end

			def url_for_default_redirection_after_login= value
				@url_for_default_redirection_after_login = value
			end


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




end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kirgudu_base-0.0.25 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.23 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.22 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.21 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.19 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.18 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.17 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.16 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.15 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.14 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.13 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.12 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.11 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.10 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.9 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.8 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.7 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.6 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.5 app/models/kirgudu_base/security/authentication_config.rb
kirgudu_base-0.0.4 app/models/kirgudu_base/security/authentication_config.rb