Merge pull request #1005 from consul/avoid-empty-description

Avoid empty description
This commit is contained in:
Alberto García Cabeza
2016-03-20 13:38:06 +01:00
3 changed files with 12 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ gem 'devise', '~> 3.5.6'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'omniauth-facebook', '~> 3.0.0'
gem 'omniauth-google-oauth2', '~> 0.3.0'
gem 'omniauth-google-oauth2', '~> 0.4.0'
gem 'kaminari'
gem 'ancestry'

View File

@@ -201,14 +201,14 @@ GEM
terminal-table (>= 1.5.1)
initialjs-rails (0.2.0.1)
railties (>= 3.1, < 5.0)
jquery-rails (4.1.0)
rails-dom-testing (~> 1.0)
jquery-rails (4.1.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
jwt (1.5.1)
jwt (1.5.3)
kaminari (0.16.3)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
@@ -239,19 +239,19 @@ GEM
mini_portile2 (~> 2.0.0.rc2)
nori (2.6.0)
oauth (0.5.0)
oauth2 (1.1.0)
oauth2 (1.0.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0, < 1.5.2)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
rack (~> 1.2)
omniauth (1.3.1)
hashie (>= 1.2, < 4)
rack (>= 1.0, < 3)
omniauth-facebook (3.0.0)
omniauth-oauth2 (~> 1.2)
omniauth-google-oauth2 (0.3.1)
jwt (~> 1.0)
omniauth-google-oauth2 (0.4.1)
jwt (~> 1.5.2)
multi_json (~> 1.3)
omniauth (>= 1.1.1)
omniauth-oauth2 (>= 1.3.1)
@@ -311,7 +311,7 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.15.0)
rake (11.0.1)
rake (11.1.1)
redcarpet (3.3.4)
referer-parser (0.3.0)
request_store (1.3.0)
@@ -471,7 +471,7 @@ DEPENDENCIES
newrelic_rpm (~> 3.14)
omniauth
omniauth-facebook (~> 3.0.0)
omniauth-google-oauth2 (~> 0.3.0)
omniauth-google-oauth2 (~> 0.4.0)
omniauth-twitter
paranoia
pg

View File

@@ -27,6 +27,7 @@ class Admin::ValuatorsController < Admin::BaseController
private
def create_params
params[:valuator][:description] = nil if params[:valuator][:description].blank?
params.require(:valuator).permit(:user_id, :description)
end
end