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 -
<%= notice %>
-======= ->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1Download results: 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 -
<%= notice %>
-======= ->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1Key: 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 @@
-======= <%= 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? %><%= notice %>
<%= alert %>
->>>>>>> 03d99741e5b661e63f6281115d2db333082a09b1 <%= yield %>