Skip to content

Commit

Permalink
Merge pull request #1 from CloudHealth/astorije/strong-params
Browse files Browse the repository at this point in the history
Add params protection in models without attr_accessible
  • Loading branch information
astorije authored Mar 20, 2017
2 parents cf4e0d8 + 7df3162 commit 440dae4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/models/proactive_support/flag.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module ProactiveSupport
class Flag < ::ActiveRecord::Base
# Remove this when all models are protected and protection is globally set
include ActiveModel::ForbiddenAttributesProtection

self.table_name = 'proactive_support_flags' # Needed for activerecord-jdbc-adapter

belongs_to :customer
Expand Down
3 changes: 3 additions & 0 deletions app/models/proactive_support/note.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module ProactiveSupport
class Note < ::ActiveRecord::Base
# Remove this when all models are protected and protection is globally set
include ActiveModel::ForbiddenAttributesProtection

self.table_name = 'proactive_support_notes' # Needed for activerecord-jdbc-adapter

belongs_to :customer
Expand Down
2 changes: 1 addition & 1 deletion lib/proactive_support/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ProactiveSupport
VERSION = '0.0.6'
VERSION = '0.0.7'
end
1 change: 0 additions & 1 deletion proactive_support.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ require 'proactive_support/version'
Gem::Specification.new do |s|
s.name = 'proactive_support'
s.version = ProactiveSupport::VERSION
s.date = '2016-05-03'
s.authors = ['Steve Frank']
s.email = %w([email protected])
s.homepage = 'https://github.com/CloudHealth/proactive_support/wiki'
Expand Down

0 comments on commit 440dae4

Please sign in to comment.