Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make some fixes, tests for textilize pass

  • Loading branch information...
commit a630c7ba48cf37f8e81bb9eb892bf78b712a266f 1 parent 05deb92
@defunkt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/acts_as_textiled.rb
View
3  lib/acts_as_textiled.rb
@@ -8,6 +8,7 @@ def self.included(klass)
module ClassMethods
def acts_as_textiled(*attrs)
@textiled_attributes = []
+ def textiled_attributes; Array(@textiled_attributes) end
ruled = Hash === attrs.last ? attrs.pop : {}
attrs += ruled.keys
@@ -39,7 +40,7 @@ def textiled=(bool)
end
def textilize
- Array(@textiled_attributes).each { |attr| __send__(attr) }
+ self.class.textiled_attributes.each { |attr| __send__(attr) }
end
def reload
Please sign in to comment.
Something went wrong with that request. Please try again.