Sha256: 9de538625d844294359244b71c77429bcff2078440617979e2c3e50ec1cc70a9

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

class Admin::PagesController < Admin::BaseController
  authorize_resource param_method: :strong_params

  resource(Page,
          location: proc { params[:stay_in_place] ?
                          edit_polymorphic_path([:admin, resource]) :
                          polymorphic_path([:admin, resource.class]) },
          collection_scope: [:sorted])
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/install/admin_panel/pages/admin_pages_controller.rb
adminos-1.0.0.pre.rc.4 lib/generators/templates/install/admin_panel/pages/admin_pages_controller.rb
adminos-1.0.0.pre.rc.3 lib/generators/templates/install/admin_panel/pages/admin_pages_controller.rb
adminos-1.0.0.pre.rc.2 lib/generators/templates/install/admin_panel/pages/admin_pages_controller.rb
adminos-1.0.0.pre.rc.1 lib/generators/templates/install/admin_panel/pages/admin_pages_controller.rb