Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whitespace changes

  • Loading branch information...
commit 97395784540682f131c0c51d4edd5dc0c655ef78 1 parent 00dd86c
Joe Peck authored
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.
Something went wrong with that request. Please try again.