railhead_sanitize 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@ RailheadSanitize is a Ruby on Rails plugin that automatically strips tags from i
6
6
 
7
7
  Installation is available as gem (recommended):
8
8
 
9
- config.gem 'nagybence-railhead_sanitize', :lib => 'railhead_sanitize', :source => 'http://gems.github.com'
9
+ config.gem 'railhead_sanitize'
10
10
 
11
11
  Or as Rails plugin:
12
12
 
@@ -1,4 +1,5 @@
1
1
  module RailheadSanitize
2
+
2
3
  def self.included(base)
3
4
  base.extend ClassMethods
4
5
  base.send :include, ActionView::Helpers::SanitizeHelper
@@ -10,6 +11,7 @@ module RailheadSanitize
10
11
  end
11
12
 
12
13
  module ClassMethods
14
+
13
15
  def auto_sanitize(options = {})
14
16
  self.sanitize_options = {
15
17
  :except => (options[:except] || []),
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_sanitize"
3
- s.version = "0.3.0"
3
+ s.version = "0.3.1"
4
4
  s.date = "2012-03-13"
5
5
  s.summary = "RailheadSanitize is a Ruby on Rails plugin that automatically strips tags from input fields."
6
6
  s.email = "nagybence@tipogral.hu"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_sanitize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bence Nagy