Skip to content

Commit bd01552

Browse files
committedApr 12, 2012
Merge branch 'heroku' of github.com:Bushido/Kandan into heroku
Conflicts: Gemfile Gemfile.lock app/models/user.rb
2 parents c21ed2b + cdef471 commit bd01552

File tree

5 files changed

+10
-31
lines changed

5 files changed

+10
-31
lines changed
 

‎Gemfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ group :assets do
3131
gem 'uglifier', '>= 1.0.3'
3232
end
3333

34-
#gem 'tane', :path => "/remote/tane", :group => :development
34+
# gem 'tane', :path => "/remote/tane", :group => :development
3535

3636
# Test gems, obviously
37-
group :test do
38-
gem 'rspec-rails'
39-
gem 'shoulda-matchers'
40-
gem 'factory_girl_rails'
41-
# gem 'jasmine', :git => "https://github.com/pivotal/jasmine-gem.git", :branch => "1.2.rc1", :group => [:development, :test]
42-
end
37+
# group :test do
38+
# gem 'rspec-rails'
39+
# gem 'shoulda-matchers'
40+
# gem 'factory_girl_rails'
41+
# gem 'jasmine', :git => "https://github.com/pivotal/jasmine-gem.git", :branch => "1.2.rc1", :group => [:development, :test]
42+
# end

‎Gemfile.lock

-23
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ GEM
7070
devise_bushido_authenticatable (1.0.3)
7171
devise (= 1.5.3)
7272
rubycas-client (>= 2.2.1)
73-
diff-lcs (1.1.3)
7473
eco (1.0.0)
7574
coffee-script
7675
eco-source
@@ -85,11 +84,6 @@ GEM
8584
eventmachine (0.12.10)
8685
execjs (1.3.0)
8786
multi_json (~> 1.0)
88-
factory_girl (2.6.1)
89-
activesupport (>= 2.3.9)
90-
factory_girl_rails (1.7.0)
91-
factory_girl (~> 2.6.0)
92-
railties (>= 3.0.0)
9387
highline (1.6.11)
9488
hike (1.2.1)
9589
httparty (0.8.1)
@@ -149,27 +143,13 @@ GEM
149143
remotipart (1.0.2)
150144
rest-client (1.6.7)
151145
mime-types (>= 1.16)
152-
rspec (2.8.0)
153-
rspec-core (~> 2.8.0)
154-
rspec-expectations (~> 2.8.0)
155-
rspec-mocks (~> 2.8.0)
156-
rspec-core (2.8.0)
157-
rspec-expectations (2.8.0)
158-
diff-lcs (~> 1.1.2)
159-
rspec-mocks (2.8.0)
160-
rspec-rails (2.8.1)
161-
actionpack (>= 3.0)
162-
activesupport (>= 3.0)
163-
railties (>= 3.0)
164-
rspec (~> 2.8.0)
165146
rubycas-client (2.3.8)
166147
activesupport
167148
sass (3.1.15)
168149
sass-rails (3.2.4)
169150
railties (~> 3.2.0)
170151
sass (>= 3.1.10)
171152
tilt (~> 1.3)
172-
shoulda-matchers (1.0.0)
173153
sprockets (2.1.2)
174154
hike (~> 1.2)
175155
rack (~> 1.0)
@@ -205,15 +185,12 @@ DEPENDENCIES
205185
devise_bushido_authenticatable
206186
eco
207187
execjs
208-
factory_girl_rails
209188
jquery-rails
210189
kaminari
211190
paperclip
212191
pg
213192
rails (= 3.2.2)
214193
remotipart
215-
rspec-rails
216194
sass-rails (~> 3.2.3)
217-
shoulda-matchers
218195
thin
219196
uglifier (>= 1.0.3)

‎app/models/user.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ class User < ActiveRecord::Base
44
before_save :ensure_authentication_token
55
before_save :ensure_gravatar_hash
66

7+
78
# Kandan.devise_modules is defined in config/initializers/kandan.rb
89
devise devise *Kandan.devise_modules
910

1011
# Setup accessible (or protected) attributes for your model
1112
attr_accessible :id, :email, :password, :password_confirmation, :remember_me, :first_name, :last_name, :locale, :gravatar_hash
1213

13-
1414
def bushido_extra_attributes(extra_attributes)
1515
self.first_name = extra_attributes["first_name"].to_s
1616
self.last_name = extra_attributes["last_name"].to_s

‎config/application.rb

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class Application < Rails::Application
2626
# Application configuration should go into files in config/initializers
2727
# -- all .rb files in that directory are automatically loaded.
2828

29+
config.assets.initialize_on_precompile = false
30+
2931
# Custom directories with classes and modules you want to be autoloadable.
3032
# config.autoload_paths += %W(#{config.root}/extras)
3133

‎vendor/plugins/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.