Skip to content
Extraits de code Groupes Projets
Valider 143a970e rédigé par carolina's avatar carolina Validation de Jonne Haß
Parcourir les fichiers

Added strong_parameters gem to Gemfile and created an initializer in config

parent 0e26a496
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -65,6 +65,11 @@ gem 'redcarpet', '3.0.0' ...@@ -65,6 +65,11 @@ gem 'redcarpet', '3.0.0'
gem 'roxml', '3.1.6' gem 'roxml', '3.1.6'
gem 'ruby-oembed', '0.8.8' gem 'ruby-oembed', '0.8.8'
#Rails 4 integration
gem 'strong_parameters'
# Services # Services
gem 'omniauth', '1.1.4' gem 'omniauth', '1.1.4'
......
...@@ -49,7 +49,7 @@ module Diaspora ...@@ -49,7 +49,7 @@ module Diaspora
# This will create an empty whitelist of attributes available for mass-assignment for all models # This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
# parameters by using an attr_accessible or attr_protected declaration. # parameters by using an attr_accessible or attr_protected declaration.
#config.active_record.whitelist_attributes = true #config.active_record.whitelist_attributes = false
# Enable the asset pipeline # Enable the asset pipeline
config.assets.enabled = true config.assets.enabled = true
......
ActiveRecord::Base.send(:include, ActiveModel::ForbiddenAttributesProtection)
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter