Sha256: b50cac8e7f5f688c475bf7d1db05226c9a432e7dfb33e0734827f775c771bf34

Contents?: true

Size: 313 Bytes

Versions: 17

Compression:

Stored size: 313 Bytes

Contents

# coding: utf-8

class Redditor::Admin::BaseController < ActionController::Base
  layout false

  before_filter :get_page

  private

    def get_page
      @page = Redditor::Page.find(params[:page_id] || params[:id])
    end

    def content_block_params
      params.require(:content_block).permit!
    end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
redditor-0.1.17 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.16 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.15 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.14 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.12 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.11 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.10 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.9 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.8 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.7 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.6 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.5 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.4 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.3 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.2 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.1 app/controllers/redditor/admin/base_controller.rb
redditor-0.1.0 app/controllers/redditor/admin/base_controller.rb