From 0bc585810196b33fa3f100b62af8ee1805ec6dd2 Mon Sep 17 00:00:00 2001
From: Will Bradley <bradley.will@gmail.com>
Date: Sat, 15 Sep 2012 17:44:30 -0700
Subject: [PATCH] Merged more conflicts

---
 Gemfile                                 |  3 ---
 Gemfile.lock                            | 18 -------------
 app/controllers/door_logs_controller.rb |  3 ---
 app/controllers/users_controller.rb     | 35 -------------------------
 app/models/user.rb                      |  3 ---
 app/views/door_logs/download.html.erb   |  4 ---
 app/views/door_logs/show.html.erb       |  4 ---
 app/views/layouts/application.html.erb  |  4 ---
 app/views/users/show.html.erb           |  8 ------
 app/views/users/upload.html.erb         |  4 ---
 app/views/users/upload_all.html.erb     |  4 ---
 config/environments/development.rb      |  3 ---
 config/environments/production.rb       |  6 +----
 config/routes.rb                        |  6 -----
 db/schema.rb                            | 11 --------
 15 files changed, 1 insertion(+), 115 deletions(-)

diff --git a/Gemfile b/Gemfile
index 765824e..00ef2e2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -23,13 +23,10 @@ end
 
 gem 'jquery-rails'
 
-<<<<<<< HEAD
-=======
 gem 'devise'
 
 gem "cancan"
 
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 # To use ActiveModel has_secure_password
 # gem 'bcrypt-ruby', '~> 3.0.0'
 
diff --git a/Gemfile.lock b/Gemfile.lock
index ef8785f..926c7f8 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -29,13 +29,8 @@ GEM
       i18n (~> 0.6)
       multi_json (~> 1.0)
     arel (3.0.2)
-<<<<<<< HEAD
-    builder (3.0.0)
-=======
-    bcrypt-ruby (3.0.1)
     builder (3.0.0)
     cancan (1.6.8)
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
     coffee-rails (3.2.2)
       coffee-script (>= 2.2.0)
       railties (~> 3.2.0)
@@ -43,14 +38,11 @@ GEM
       coffee-script-source
       execjs
     coffee-script-source (1.3.3)
-<<<<<<< HEAD
-=======
     devise (2.1.1)
       bcrypt-ruby (~> 3.0)
       orm_adapter (~> 0.1)
       railties (~> 3.1)
       warden (~> 1.2.1)
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
     erubis (2.7.0)
     execjs (1.4.0)
       multi_json (~> 1.0)
@@ -68,10 +60,7 @@ GEM
       treetop (~> 1.4.8)
     mime-types (1.19)
     multi_json (1.3.6)
-<<<<<<< HEAD
-=======
     orm_adapter (0.1.0)
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
     polyglot (0.3.3)
     rack (1.4.1)
     rack-cache (1.2)
@@ -119,23 +108,16 @@ GEM
     uglifier (1.2.7)
       execjs (>= 0.3.0)
       multi_json (~> 1.3)
-<<<<<<< HEAD
-=======
     warden (1.2.1)
       rack (>= 1.0)
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
 PLATFORMS
   ruby
 
 DEPENDENCIES
-<<<<<<< HEAD
-  coffee-rails (~> 3.2.1)
-=======
   cancan
   coffee-rails (~> 3.2.1)
   devise
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
   jquery-rails
   json
   rails (= 3.2.3)
diff --git a/app/controllers/door_logs_controller.rb b/app/controllers/door_logs_controller.rb
index 465b739..d9b8fd3 100644
--- a/app/controllers/door_logs_controller.rb
+++ b/app/controllers/door_logs_controller.rb
@@ -1,10 +1,7 @@
 class DoorLogsController < ApplicationController
-<<<<<<< HEAD
-=======
   authorize_resource
   before_filter :authenticate_user!
 
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
   # GET /door_logs
   # GET /door_logs.json
   def index
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index ccdfdc2..dde8413 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,10 +1,4 @@
 class UsersController < ApplicationController
-<<<<<<< HEAD
-  # GET /users
-  # GET /users.json
-  def index
-    @users = User.all
-=======
   load_and_authorize_resource
   before_filter :authenticate_user!
   
@@ -13,7 +7,6 @@ class UsersController < ApplicationController
   def index
     #@users = User.all
     #authorize! :read, @users
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
     respond_to do |format|
       format.html # index.html.erb
@@ -24,11 +17,7 @@ class UsersController < ApplicationController
   # GET /users/1
   # GET /users/1.json
   def show
-<<<<<<< HEAD
-    @user = User.find(params[:id])
-=======
     #@user = User.find(params[:id])
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
     respond_to do |format|
       format.html # show.html.erb
@@ -38,11 +27,7 @@ class UsersController < ApplicationController
 
   # PUT /users/1/upload
   def upload
-<<<<<<< HEAD
-    @user = User.find(params[:id])
-=======
     #@user = User.find(params[:id])
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
     @upload_result = @user.upload_to_door
 
     respond_to do |format|
@@ -64,11 +49,7 @@ class UsersController < ApplicationController
   # GET /users/new
   # GET /users/new.json
   def new
-<<<<<<< HEAD
-    @user = User.new
-=======
     #@user = User.new
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
     respond_to do |format|
       format.html # new.html.erb
@@ -78,21 +59,13 @@ class UsersController < ApplicationController
 
   # GET /users/1/edit
   def edit
-<<<<<<< HEAD
-    @user = User.find(params[:id])
-=======
     #@user = User.find(params[:id])
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
   end
 
   # POST /users
   # POST /users.json
   def create
-<<<<<<< HEAD
-    @user = User.new(params[:user])
-=======
     #@user = User.new(params[:user])
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
     respond_to do |format|
       if @user.save
@@ -108,11 +81,7 @@ class UsersController < ApplicationController
   # PUT /users/1
   # PUT /users/1.json
   def update
-<<<<<<< HEAD
-    @user = User.find(params[:id])
-=======
     #@user = User.find(params[:id])
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
     respond_to do |format|
       if @user.update_attributes(params[:user])
@@ -128,11 +97,7 @@ class UsersController < ApplicationController
   # DELETE /users/1
   # DELETE /users/1.json
   def destroy
-<<<<<<< HEAD
-    @user = User.find(params[:id])
-=======
     #@user = User.find(params[:id])
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
     @user.destroy
 
     respond_to do |format|
diff --git a/app/models/user.rb b/app/models/user.rb
index 53565d7..b44fbb7 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,6 +1,4 @@
 class User < ActiveRecord::Base
-<<<<<<< HEAD
-=======
   # Include default devise modules. Others available are:
   # :token_authenticatable, :confirmable,
   # :lockable, :timeoutable and :omniauthable
@@ -9,7 +7,6 @@ class User < ActiveRecord::Base
 
   # Setup accessible (or protected) attributes for your model
   attr_accessible :email, :password, :password_confirmation, :remember_me
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
   require 'open-uri'
 
   attr_accessible :card_id, :card_number, :card_permissions, :name
diff --git a/app/views/door_logs/download.html.erb b/app/views/door_logs/download.html.erb
index 3bad65e..4e3b66c 100644
--- a/app/views/door_logs/download.html.erb
+++ b/app/views/door_logs/download.html.erb
@@ -1,7 +1,3 @@
-<<<<<<< HEAD
-<p id="notice"><%= notice %></p>
-=======
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
 <p>
   <b>Download results:</b>
diff --git a/app/views/door_logs/show.html.erb b/app/views/door_logs/show.html.erb
index af7814d..698420f 100644
--- a/app/views/door_logs/show.html.erb
+++ b/app/views/door_logs/show.html.erb
@@ -1,7 +1,3 @@
-<<<<<<< HEAD
-<p id="notice"><%= notice %></p>
-=======
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
 <p>
   <b>Key:</b>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index aec0cd9..6636e19 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -10,15 +10,11 @@
   <div id="header">
     <a href="/users">Users</a>
     <a href="/door_logs">Logs</a>
-<<<<<<< HEAD
-  </div>
-=======
     <%= link_to 'Profile', edit_user_registration_path if user_signed_in? %>
     <%= link_to 'Sign out', destroy_user_session_path, :method => :delete if user_signed_in? %>
   </div>
   <p class="notice"><%= notice %></p>
   <p class="alert"><%= alert %></p>
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 <%= yield %>
 
 </body>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 06ffebc..d220451 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,7 +1,3 @@
-<<<<<<< HEAD
-<p id="notice"><%= notice %></p>
-=======
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
 <p>
   <b>Name:</b>
@@ -23,10 +19,6 @@
   <%= @user.card_permissions %>
 </p>
 
-<<<<<<< HEAD
-<%= link_to 'Upload to Door', upload_path(user) %>
-=======
 <%= link_to 'Upload to Door', upload_path(@user) %>
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 <%= link_to 'Edit', edit_user_path(@user) %> |
 <%= link_to 'Back', users_path %>
diff --git a/app/views/users/upload.html.erb b/app/views/users/upload.html.erb
index 6d94cc1..824446b 100644
--- a/app/views/users/upload.html.erb
+++ b/app/views/users/upload.html.erb
@@ -1,7 +1,3 @@
-<<<<<<< HEAD
-<p id="notice"><%= notice %></p>
-=======
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
 <% if @upload_result %>
 <p>
diff --git a/app/views/users/upload_all.html.erb b/app/views/users/upload_all.html.erb
index 960d7a0..f576dd0 100644
--- a/app/views/users/upload_all.html.erb
+++ b/app/views/users/upload_all.html.erb
@@ -1,7 +1,3 @@
-<<<<<<< HEAD
-<p id="notice"><%= notice %></p>
-=======
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
 <p>
 <b>Upload results:</b>
diff --git a/config/environments/development.rb b/config/environments/development.rb
index c96c35b..a904175 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -34,9 +34,6 @@ Dooraccess::Application.configure do
 
   # Expands the lines which load the assets
   config.assets.debug = true
-<<<<<<< HEAD
-=======
 
   config.action_mailer.default_url_options = { :host => 'localhost:3000' }
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 207c855..74d1c0e 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -14,12 +14,8 @@ Dooraccess::Application.configure do
   # Compress JavaScripts and CSS
   config.assets.compress = true
 
-  # Don't fallback to assets pipeline if a precompiled asset is missed
-<<<<<<< HEAD
-  config.assets.compile = false
-=======
+  # Fallback to assets pipeline if a precompiled asset is missed
   config.assets.compile = true
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
   # Generate digests for assets URLs
   config.assets.digest = true
diff --git a/config/routes.rb b/config/routes.rb
index f26d8d7..75af558 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,10 +1,7 @@
 Dooraccess::Application.routes.draw do
 
-<<<<<<< HEAD
-=======
   devise_for :users
 
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
   match 'users/upload_all' => 'users#upload_all', :as => :upload_all
   resources :users
   match 'users/:id/upload' => 'users#upload', :as => :upload
@@ -12,11 +9,8 @@ Dooraccess::Application.routes.draw do
   match 'door_logs/download' => 'door_logs#download', :as => :download
   resources :door_logs
 
-<<<<<<< HEAD
-=======
   root :to => "home#index"
 
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
   # The priority is based upon order of creation:
   # first created -> highest priority.
 
diff --git a/db/schema.rb b/db/schema.rb
index ec6c31d..4c537df 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,11 +10,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-<<<<<<< HEAD
-ActiveRecord::Schema.define(:version => 20120825041626) do
-=======
 ActiveRecord::Schema.define(:version => 20120904024426) do
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 
   create_table "door_logs", :force => true do |t|
     t.string   "key"
@@ -28,12 +24,6 @@ ActiveRecord::Schema.define(:version => 20120904024426) do
     t.integer  "card_id"
     t.string   "card_number"
     t.integer  "card_permissions"
-<<<<<<< HEAD
-    t.datetime "created_at",       :null => false
-    t.datetime "updated_at",       :null => false
-  end
-
-=======
     t.datetime "created_at",                             :null => false
     t.datetime "updated_at",                             :null => false
     t.string   "email",                  :default => "", :null => false
@@ -52,5 +42,4 @@ ActiveRecord::Schema.define(:version => 20120904024426) do
   add_index "users", ["email"], :name => "index_users_on_email", :unique => true
   add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
 
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1
 end