Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop' of github.com:HAW-AI/Zaphod into develop

  • Loading branch information...
commit b1ea6ddb1429cdb89e152d2c6c773fabc40becbb 2 parents b69f7a9 + ed0c4b0
@patrickdet patrickdet authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  config/application.rb
  2. +4 −0 spec/factories/users.rb
View
2  config/application.rb
@@ -54,7 +54,7 @@ class Application < Rails::Application
# 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
# parameters by using an attr_accessible or attr_protected declaration.
- # config.active_record.whitelist_attributes = true
+ config.active_record.whitelist_attributes = true
# Enable the asset pipeline
config.assets.enabled = true
View
4 spec/factories/users.rb
@@ -2,5 +2,9 @@
FactoryGirl.define do
factory :user do
+ username "Robert'); DROP TABLE Students;--"
+ email "zaphod@example.com"
+ crypted_password "bobby"
+ salt "tables"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.