Permalink
Browse files

nicht mehr benötigte Models entfernt

  • Loading branch information...
Jose Rodriguez Maicas
Jose Rodriguez Maicas committed Jan 13, 2012
1 parent 900d067 commit fcf434463d6b6b5799c5907989c890b47d3adf33
Showing with 72 additions and 597 deletions.
  1. +0 −9 app/controllers/big_events_controller.rb
  2. +0 −15 app/controllers/blockings_controller.rb
  3. +0 −7 app/controllers/bookings_controller.rb
  4. +0 −13 app/controllers/events_controller.rb
  5. +0 −2 app/helpers/big_events_helper.rb
  6. +0 −2 app/helpers/blockings_helper.rb
  7. +0 −2 app/helpers/bookings_helper.rb
  8. +0 −2 app/helpers/events_helper.rb
  9. +0 −3 app/models/big_event.rb
  10. +0 −9 app/models/blocking.rb
  11. +0 −12 app/models/booking.rb
  12. +0 −3 app/models/conflict.rb
  13. +0 −4 app/models/event.rb
  14. +0 −13 app/views/big_events/_big_event.html.haml
  15. +0 −9 app/views/big_events/_form.html.haml
  16. +0 −11 app/views/big_events/edit.html.haml
  17. +0 −5 app/views/big_events/index.html.haml
  18. +0 −9 app/views/big_events/new.html.haml
  19. +0 −18 app/views/big_events/show.html.haml
  20. +0 −31 app/views/blockings/_blocking.html.haml
  21. +0 −24 app/views/blockings/_form.html.haml
  22. +0 −11 app/views/blockings/edit.html.haml
  23. +0 −5 app/views/blockings/index.html.haml
  24. +0 −9 app/views/blockings/new.html.haml
  25. +0 −33 app/views/blockings/show.html.haml
  26. +0 −34 app/views/bookings/_booking.html.haml
  27. +0 −27 app/views/bookings/_form.html.haml
  28. +0 −11 app/views/bookings/edit.html.haml
  29. +0 −5 app/views/bookings/index.html.haml
  30. +0 −9 app/views/bookings/new.html.haml
  31. +0 −36 app/views/bookings/show.html.haml
  32. +0 −9 app/views/events/_event.html.haml
  33. +0 −12 app/views/events/_form.html.haml
  34. +0 −11 app/views/events/edit.html.haml
  35. +0 −10 app/views/events/index.html.haml
  36. +0 −9 app/views/events/new.html.haml
  37. +0 −30 app/views/events/show.html.haml
  38. +3 −3 config/environment.rb
  39. +69 −49 db/schema.rb
  40. +0 −8 test/fixtures/big_events.yml
  41. +0 −20 test/fixtures/blockings.yml
  42. +0 −22 test/fixtures/bookings.yml
  43. +0 −21 test/fixtures/conflicts.yml
  44. +0 −10 test/fixtures/events.yml
@@ -1,9 +0,0 @@
-#Todo Check ob noch gebraucht wird
-class BigEventsController < ApplicationController
- include Aegis::Controller
-
-
- make_resourceful do
- actions :all
- end
-end
@@ -1,15 +0,0 @@
-class BlockingsController < ApplicationController
- include Aegis::Controller
-
-
-
- make_resourceful do
- actions :all
-
- response_for :update,:destroy do |format|
- format.html { redirect_to(termine_sperren_object_path(current_object) ) }
- end
-
- end
-
-end
@@ -1,7 +0,0 @@
-class BookingsController < ApplicationController
- include Aegis::Controller
-
- make_resourceful do
- actions :all
- end
-end
@@ -1,13 +0,0 @@
-class EventsController < ApplicationController
- include Aegis::Controller
-
- make_resourceful do
- actions :all
- belongs_to :season
-
- response_for :update,:create do |format|
- format.html { render :action => 'index' }
- end
- end
-
-end
@@ -1,2 +0,0 @@
-module BigEventsHelper
-end
@@ -1,2 +0,0 @@
-module BlockingsHelper
-end
@@ -1,2 +0,0 @@
-module BookingsHelper
-end
@@ -1,2 +0,0 @@
-module EventsHelper
-end
View
@@ -1,3 +0,0 @@
-class BigEvent < ActiveRecord::Base
- belongs_to :bereich
-end
View
@@ -1,9 +0,0 @@
-class Blocking < ActiveRecord::Base
- belongs_to :blocker , :polymorphic=>true
-
- def nummer
- return "#GE #{self.blocker_id} #{self.grund}"
- end
-
-
-end
View
@@ -1,12 +0,0 @@
-class Booking < ActiveRecord::Base
- belongs_to :booker , :polymorphic=>true
- belongs_to :game
- belongs_to :field
-
-
-
-
- def nummer
- return "#RE #{self.booker_id} #{self.game.spielnummer} #{self.field_id}"
- end
-end
View
@@ -1,3 +0,0 @@
-class Conflict < ActiveRecord::Base
- belongs_to :game
-end
View
@@ -1,4 +0,0 @@
-class Event < ActiveRecord::Base
- belongs_to :season
- belongs_to :big_event
-end
@@ -1,13 +0,0 @@
-%div[big_event]
- %p.bezeichung
- %strong Bezeichung
- = h big_event.bezeichnung
- %p.sport
- %strong Sport
- = h big_event.sport
-
- = link_to 'Show', object_path(big_event)
- |
- = link_to 'Edit', edit_object_path(big_event)
- |
- = link_to 'Destroy', object_path(big_event), :confirm => 'Really destroy big_event?', :method => :delete
@@ -1,9 +0,0 @@
-%p
- %label{:for => "big_event_bezeichnung"} Bezeichung:
- = f.text_field :bezeichnung
-%p
- %label{:for => "big_event_bereich"} Bereich:
- = select :big_event, :bereich_id, Bereich.find(:all).collect {|c|[c.bezeichnung,c.id]}
-%p
- %label{:for => "big_event_sport"} Sport:
- = select :big_event, "sport", {"Baseball"=>1,"Softball"=>2}
@@ -1,11 +0,0 @@
-%h1 Editing big_event
-
-= error_messages_for :big_event
-
-- form_for(:big_event, :url => object_url, :html => { :method => :put }) do |f|
- = render :partial => "form", :locals => {:f => f}
- %p= submit_tag "Update"
-
-= link_to 'Show', object_path
-|
-= link_to 'Back', objects_path
@@ -1,5 +0,0 @@
-%h1 Listing big_events
-
-= render :partial => 'big_event', :collection => current_objects
-
-= link_to 'New big_event', new_object_path
@@ -1,9 +0,0 @@
-%h1 Creating big_event
-
-= error_messages_for :big_event
-
-- form_for(:big_event, :url => objects_url) do |f|
- = render :partial => "form", :locals => {:f => f}
- %p= submit_tag "Create"
-
-= link_to 'Back', objects_path
@@ -1,18 +0,0 @@
-%h1 Viewing big_event
-
-%div[current_object]
- %p.bezeichung
- %strong Bezeichung
- = h current_object.bezeichnung
- %p.sport
- %strong Sport
- = h current_object.sport
- %p.bereich
- %strong Sport
- = h current_object.bereich.bezeichnung
-
-= link_to 'Edit', edit_object_path
-|
-= link_to 'Destroy', object_path, :confirm => 'Really destroy big_event?', :method => :delete
-|
-= link_to 'Back', objects_path
@@ -1,31 +0,0 @@
-%div[blocking]
- %p.datum
- %strong Datum
- = h blocking.datum
- %p.home
- %strong Home
- = h blocking.home
- %p.away
- %strong Away
- = h blocking.away
- %p.grund
- %strong Grund
- = h blocking.grund
- %p.blocker_id
- %strong Blocker
- = h blocking.blocker_id
- %p.blocker_type
- %strong Blocker type
- = h blocking.blocker_type
- %p.created_at
- %strong Created at
- = h blocking.created_at
- %p.updated_at
- %strong Updated at
- = h blocking.updated_at
-
- = link_to 'Show', object_path(blocking)
- |
- = link_to 'Edit', edit_object_path(blocking)
- |
- = link_to 'Destroy', object_path(blocking), :confirm => 'Really destroy blocking?', :method => :delete
@@ -1,24 +0,0 @@
-%p
- %label{:for => "blocking_datum"} Datum:
- = f.date_select :datum
-%p
- %label{:for => "blocking_home"} Home:
- = f.check_box :home
-%p
- %label{:for => "blocking_away"} Away:
- = f.check_box :away
-%p
- %label{:for => "blocking_grund"} Grund:
- = f.text_field :grund
-%p
- %label{:for => "blocking_blocker_id"} Blocker:
- = f.text_field :blocker_id
-%p
- %label{:for => "blocking_blocker_type"} Blocker type:
- = f.text_field :blocker_type
-%p
- %label{:for => "blocking_created_at"} Created at:
- = f.datetime_select :created_at
-%p
- %label{:for => "blocking_updated_at"} Updated at:
- = f.datetime_select :updated_at
@@ -1,11 +0,0 @@
-%h1 Editing blocking
-
-= error_messages_for :blocking
-
-- form_for(:blocking, :url => object_url, :html => { :method => :put }) do |f|
- = render :partial => "form", :locals => {:f => f}
- %p= submit_tag "Update"
-
-= link_to 'Show', object_path
-|
-= link_to 'Back', objects_path
@@ -1,5 +0,0 @@
-%h1 Listing blockings
-
-= render :partial => 'blocking', :collection => current_objects
-
-= link_to 'New blocking', new_object_path
@@ -1,9 +0,0 @@
-%h1 Creating blocking
-
-= error_messages_for :blocking
-
-- form_for(:blocking, :url => objects_url) do |f|
- = render :partial => "form", :locals => {:f => f}
- %p= submit_tag "Create"
-
-= link_to 'Back', objects_path
@@ -1,33 +0,0 @@
-%h1 Viewing blocking
-
-%div[current_object]
- %p.datum
- %strong Datum
- = h current_object.datum
- %p.home
- %strong Home
- = h current_object.home
- %p.away
- %strong Away
- = h current_object.away
- %p.grund
- %strong Grund
- = h current_object.grund
- %p.blocker_id
- %strong Blocker
- = h current_object.blocker_id
- %p.blocker_type
- %strong Blocker type
- = h current_object.blocker_type
- %p.created_at
- %strong Created at
- = h current_object.created_at
- %p.updated_at
- %strong Updated at
- = h current_object.updated_at
-
-= link_to 'Edit', edit_object_path
-|
-= link_to 'Destroy', object_path, :confirm => 'Really destroy blocking?', :method => :delete
-|
-= link_to 'Back', objects_path
@@ -1,34 +0,0 @@
-%div[booking]
- %p.datum
- %strong Datum
- = h booking.datum
- %p.von
- %strong Von
- = h booking.von
- %p.bis
- %strong Bis
- = h booking.bis
- %p.ganztags
- %strong Ganztags
- = h booking.ganztags
- %p.grund
- %strong Grund
- = h booking.grund
- %p.booker_id
- %strong Booker
- = h booking.booker_id
- %p.booker_type
- %strong Booker type
- = h booking.booker_type
- %p.created_at
- %strong Created at
- = h booking.created_at
- %p.updated_at
- %strong Updated at
- = h booking.updated_at
-
- = link_to 'Show', object_path(booking)
- |
- = link_to 'Edit', edit_object_path(booking)
- |
- = link_to 'Destroy', object_path(booking), :confirm => 'Really destroy booking?', :method => :delete
@@ -1,27 +0,0 @@
-%p
- %label{:for => "booking_datum"} Datum:
- = f.date_select :datum
-%p
- %label{:for => "booking_von"} Von:
- = f.datetime_select :von
-%p
- %label{:for => "booking_bis"} Bis:
- = f.datetime_select :bis
-%p
- %label{:for => "booking_ganztags"} Ganztags:
- = f.check_box :ganztags
-%p
- %label{:for => "booking_grund"} Grund:
- = f.text_field :grund
-%p
- %label{:for => "booking_booker_id"} Booker:
- = f.text_field :booker_id
-%p
- %label{:for => "booking_booker_type"} Booker type:
- = f.text_field :booker_type
-%p
- %label{:for => "booking_created_at"} Created at:
- = f.datetime_select :created_at
-%p
- %label{:for => "booking_updated_at"} Updated at:
- = f.datetime_select :updated_at
@@ -1,11 +0,0 @@
-%h1 Editing booking
-
-= error_messages_for :booking
-
-- form_for(:booking, :url => object_url, :html => { :method => :put }) do |f|
- = render :partial => "form", :locals => {:f => f}
- %p= submit_tag "Update"
-
-= link_to 'Show', object_path
-|
-= link_to 'Back', objects_path
@@ -1,5 +0,0 @@
-%h1 Listing bookings
-
-= render :partial => 'booking', :collection => current_objects
-
-= link_to 'New booking', new_object_path
@@ -1,9 +0,0 @@
-%h1 Creating booking
-
-= error_messages_for :booking
-
-- form_for(:booking, :url => objects_url) do |f|
- = render :partial => "form", :locals => {:f => f}
- %p= submit_tag "Create"
-
-= link_to 'Back', objects_path
Oops, something went wrong.

0 comments on commit fcf4344

Please sign in to comment.