Sha256: f59aa0f0f785600f2f535871a780257c1aff838c089554b4a7103db32b12e0ed

Contents?: true

Size: 305 Bytes

Versions: 4

Compression:

Stored size: 305 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 settings
    {}
  end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.8.3 app/controllers/admin/static_pages_controller.rb
ab_admin-0.8.2 app/controllers/admin/static_pages_controller.rb
ab_admin-0.8.1 app/controllers/admin/static_pages_controller.rb
ab_admin-0.8.0 app/controllers/admin/static_pages_controller.rb