Class: Social::Config::Provider
- Inherits:
-
Object
- Object
- Social::Config::Provider
- Defined in:
- lib/social/config/provider.rb
Class Method Summary collapse
- .env ⇒ Object
- .factory_data(social_type, type = :file) ⇒ Object
- .factory_driver(social_type, type) ⇒ Object
Class Method Details
.env ⇒ Object
9 10 11 |
# File 'lib/social/config/provider.rb', line 9 def env @env ||= ENV['APP_ENV'] || ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development' end |
.factory_data(social_type, type = :file) ⇒ Object
5 6 7 |
# File 'lib/social/config/provider.rb', line 5 def factory_data(, type = :file) factory_driver(, type).config_data[env] end |