aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-07-29 23:09:24 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-07-29 23:09:24 -0500
commit4d1794713e68263ef2db49cf633a84b0c07b69f7 (patch)
tree725d48c89b1178c28f1a084138a4a9d634c45333 /activemodel/lib
parentc57b8d236bbca25fa655a7ed48ae60dd46c0f257 (diff)
downloadrails-4d1794713e68263ef2db49cf633a84b0c07b69f7.tar.gz
rails-4d1794713e68263ef2db49cf633a84b0c07b69f7.tar.bz2
rails-4d1794713e68263ef2db49cf633a84b0c07b69f7.zip
add :nodoc: directives to ActiveModel Sanitizers [ci skip]
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/mass_assignment_security/sanitizer.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb b/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
index 44ce5a489d..dafb7cdff3 100644
--- a/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
+++ b/activemodel/lib/active_model/mass_assignment_security/sanitizer.rb
@@ -1,6 +1,6 @@
module ActiveModel
module MassAssignmentSecurity
- class Sanitizer
+ class Sanitizer #:nodoc:
# Returns all attributes not denied by the authorizer.
def sanitize(klass, attributes, authorizer)
rejected = []
@@ -18,7 +18,7 @@ module ActiveModel
end
end
- class LoggerSanitizer < Sanitizer
+ class LoggerSanitizer < Sanitizer #:nodoc:
def initialize(target)
@target = target
super()
@@ -50,7 +50,7 @@ module ActiveModel
end
end
- class StrictSanitizer < Sanitizer
+ class StrictSanitizer < Sanitizer #:nodoc:
def initialize(target = nil)
super()
end
@@ -65,7 +65,7 @@ module ActiveModel
end
end
- class Error < StandardError
+ class Error < StandardError #:nodoc:
def initialize(klass, attrs)
super("Can't mass-assign protected attributes for #{klass.name}: #{attrs.join(', ')}")
end