Permalink
Browse files

add :nodoc: directives to ActiveModel Sanitizers [ci skip]

  • Loading branch information...
1 parent c57b8d2 commit 4d1794713e68263ef2db49cf633a84b0c07b69f7 Francesco Rodriguez committed Jul 30, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 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 @@ def process_removed_attributes(klass, attrs)
end
end
- class LoggerSanitizer < Sanitizer
+ class LoggerSanitizer < Sanitizer #:nodoc:
def initialize(target)
@target = target
super()
@@ -50,7 +50,7 @@ def process_removed_attributes(klass, attrs)
end
end
- class StrictSanitizer < Sanitizer
+ class StrictSanitizer < Sanitizer #:nodoc:
def initialize(target = nil)
super()
end
@@ -65,7 +65,7 @@ def insensitive_attributes
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

0 comments on commit 4d17947

Please sign in to comment.