Class: Para::SeoTools::Admin::SkeletonResourcesController
- Inherits:
-
Admin::CrudResourcesController
- Object
- Admin::CrudResourcesController
- Para::SeoTools::Admin::SkeletonResourcesController
- Defined in:
- app/controllers/para/seo_tools/admin/skeleton_resources_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/para/seo_tools/admin/skeleton_resources_controller.rb', line 5 def index super @available_locales = ::Para::SeoTools::Page.group(:locale).pluck(:locale) end |
#refresh ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/para/seo_tools/admin/skeleton_resources_controller.rb', line 10 def refresh ::Para::SeoTools::Skeleton.with_logging do ::Para::SeoTools::Skeleton.load ::Para::SeoTools::Skeleton::Worker.perform end redirect_to after_form_submit_path end |