Sha256: a84faaf09ba5287c50bd93e18985e64d1221696591c5166bca031297b5198f9b

Contents?: true

Size: 512 Bytes

Versions: 67

Compression:

Stored size: 512 Bytes

Contents

class Admin::SitesController < Admin::ResourceController
  helper :sites
  only_allow_access_to :index, :show, :new, :create, :edit, :update, :remove, :destroy,
    :when => :admin,
    :denied_url => { :controller => 'pages', :action => 'index' },
    :denied_message => 'You must have administrative privileges to perform this action.'
  
  %w(move_higher move_lower move_to_top move_to_bottom).each do |action|
    define_method action do
      model.send(action)
      response_for :update
    end
  end
end

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
trusty-multi-site-extension-1.1.5 app/controllers/admin/sites_controller.rb
trusty-multi-site-extension-1.1.4 app/controllers/admin/sites_controller.rb
trusty-multi-site-extension-1.0.4 app/controllers/admin/sites_controller.rb
trusty-multi-site-extension-1.0.3 app/controllers/admin/sites_controller.rb
trusty-multi-site-extension-1.0.2 app/controllers/admin/sites_controller.rb
trusty-multi-site-extension-1.0.1 app/controllers/admin/sites_controller.rb
trusty-multi-site-extension-1.0.0 app/controllers/admin/sites_controller.rb