Sha256: a9457cfd2267a59f6d4e27cb6d413d1b03971cb3339ff21f160ff18ee99a0088

Contents?: true

Size: 276 Bytes

Versions: 3

Compression:

Stored size: 276 Bytes

Contents

class Admin::StaticPagesController < Admin::BaseController
  load_and_authorize_resource

  defaults singleton: true, class_name: 'Structure'

  belongs_to :structure, finder: :friendly_find

  private

  def permitted_params
    params[:static_page].try!(:permit!)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ab_admin-0.11.0 app/controllers/admin/static_pages_controller.rb
ab_admin-0.10.0 app/controllers/admin/static_pages_controller.rb
ab_admin-0.9.0 app/controllers/admin/static_pages_controller.rb