Class: Admin::Para::SeoTools::SkeletonResourcesController
- Inherits:
-
Para::Admin::CrudResourcesController
- Object
- Para::Admin::CrudResourcesController
- Admin::Para::SeoTools::SkeletonResourcesController
- Defined in:
- app/controllers/admin/para/seo_tools/skeleton_resources_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/admin/para/seo_tools/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/admin/para/seo_tools/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 |