Class: EventCategoriesController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/event_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



14
15
16
# File 'app/controllers/event_categories_controller.rb', line 14

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

#updateObject



5
6
7
8
9
10
11
12
# File 'app/controllers/event_categories_controller.rb', line 5

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