Skip to content

Commit

Permalink
Rollback Route Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Kapoor committed Jun 26, 2014
1 parent fc0420a commit c5710e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/fullcalendar_engine/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def new
end
end

def index
def get_events
start_time = Time.at(params[:start].to_i).to_formatted_s(:db)
end_time = Time.at(params[:end].to_i).to_formatted_s(:db)

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
'timeFormat' => "h:mm t{ - h:mm t}"
}
FullcalendarEngine::Configuration.merge!(config)
FullcalendarEngine::Configuration['events'] = "#{FullcalendarEngine::Configuration['mount_path']}/events"
FullcalendarEngine::Configuration['events'] = "#{FullcalendarEngine::Configuration['mount_path']}/events/get_events"
5 changes: 4 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FullcalendarEngine::Engine.routes.draw do
resources :events do
resources :events do
collection do
get :get_events
end
member do
post :move
post :resize
Expand Down

0 comments on commit c5710e3

Please sign in to comment.