Sha256: 6b1885cbc6a571c0037f3e01810a51e851fb1ab33e3a02fc949f37ec460153f1

Contents?: true

Size: 379 Bytes

Versions: 16

Compression:

Stored size: 379 Bytes

Contents

class EventCategoriesController < InheritedResources::Base
  respond_to :html, :xml
  load_and_authorize_resource

  def update
    @event_category = EventCategory.find(params[:id])
    if params[:move]
      move_position(@event_category, params[:move])
      return
    end
    update!
  end

  def index
    @event_categories = @event_categories.page(params[:page])
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_event-0.0.17 app/controllers/event_categories_controller.rb
enju_event-0.0.16 app/controllers/event_categories_controller.rb
enju_event-0.1.4 app/controllers/event_categories_controller.rb
enju_event-0.1.3 app/controllers/event_categories_controller.rb
enju_event-0.0.15 app/controllers/event_categories_controller.rb
enju_event-0.0.14 app/controllers/event_categories_controller.rb
enju_event-0.0.13 app/controllers/event_categories_controller.rb
enju_event-0.0.12 app/controllers/event_categories_controller.rb
enju_event-0.0.11 app/controllers/event_categories_controller.rb
enju_event-0.1.2 app/controllers/event_categories_controller.rb
enju_event-0.0.10 app/controllers/event_categories_controller.rb
enju_event-0.1.1 app/controllers/event_categories_controller.rb
enju_event-0.1.0 app/controllers/event_categories_controller.rb
enju_event-0.0.9 app/controllers/event_categories_controller.rb
enju_event-0.0.8 app/controllers/event_categories_controller.rb
enju_event-0.0.7 app/controllers/event_categories_controller.rb