Class: Virgo::Admin::BaseController
- Inherits:
-
Virgo::ApplicationController
- Object
- ActionController::Base
- Virgo::ApplicationController
- Virgo::Admin::BaseController
- Defined in:
- app/controllers/virgo/admin/base_controller.rb
Direct Known Subclasses
CategoriesController, ColumnsController, ImagesController, MediaModalController, NewslettersController, PageModulesController, PagesController, PostsController, SitesController, SlidesController, SlideshowsController, TagsController, UsersController
Instance Method Summary collapse
Methods inherited from Virgo::ApplicationController
collection_actions, default_sort_order, deploy_key, member_actions
Methods included from RenderHelper
Methods included from Virgo::ApplicationHelper
#action?, #admin?, #admin_access?, #admin_view?, #alerts, #base_errors, #category_timestamp, #column_timestamp, #compact_html, #controller?, #decode_html_entities, #expanded_post_url, #is_admin_view?, #page_url, #post_time_format, #post_timestamp, #production?, #redis_timestamp_key_for, #site, #site_key, #superuser?, #tabbed_param, #word_count
Instance Method Details
#authorize_admin_user ⇒ Object
12 13 14 15 16 |
# File 'app/controllers/virgo/admin/base_controller.rb', line 12 def unless user_signed_in? and current_user.admin_access? redirect_to root_path, notice: 'You do not have permission to access admin pages.' end end |
#search ⇒ Object
8 9 10 |
# File 'app/controllers/virgo/admin/base_controller.rb', line 8 def search redirect_to params.merge(action: "index").to_hash end |
#set_is_admin_view ⇒ Object
18 19 20 |
# File 'app/controllers/virgo/admin/base_controller.rb', line 18 def set_is_admin_view @_is_admin_view = true end |