Browse files

Whitespace changes

  • Loading branch information...
1 parent 00dd86c commit 97395784540682f131c0c51d4edd5dc0c655ef78 Joe Peck committed Jan 18, 2013
Showing with 4 additions and 6 deletions.
  1. +1 −2 app/models/event.rb
  2. +1 −1 app/views/layouts/application.html.erb
  3. +2 −3 config/routes.rb
View
3 app/models/event.rb
@@ -4,10 +4,9 @@ class Event < ActiveRecord::Base
has_many :votes
has_many :timeslots, dependent: :destroy
accepts_nested_attributes_for :timeslots, reject_if: -> attr { attr['started_at'].blank? }, allow_destroy: true
-
validates_presence_of :event_type
-
+
attr_accessible :timeslots
def to_s
View
2 app/views/layouts/application.html.erb
@@ -2,7 +2,7 @@
<html>
<head>
<title>Temptd</title>
- <%= stylesheet_link_tag "application", :media => "all" %>
+ <%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
View
5 config/routes.rb
@@ -8,9 +8,8 @@
#
# match "/auth/:provider/callback" => "devise/sessions#create"
- devise_for :users, path_names: {sign_in: "login", sign_out: "logout"}, controllers: {omniauth_callbacks: "omniauth_callbacks"}
-
-
+ devise_for :users, path_names: {sign_in: "login", sign_out: "logout"},
+ controllers: {omniauth_callbacks: "omniauth_callbacks"}
resources :events
resources :votes

0 comments on commit 9739578

Please sign in to comment.