Class: Admin::AdminController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::AdminController
- Defined in:
- app/controllers/gallery/admin/admin_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/gallery/admin/admin_controller.rb', line 6 def index @identities = Identity.all @public_albums = Album.published @private_albums = Album.not_published configpath = Rails.root.join('config', 'gallery_api_keys.yml') @providers = YAML.load(ERB.new(File.new(configpath).read).result).keys end |