Permalink
Browse files

Remove unused blank_content option.

  • Loading branch information...
1 parent 63adc60 commit 9d84303925191e498b6bd78202e3db83342bbee1 @josevalim josevalim committed May 14, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −3 lib/show_for.rb
  2. +0 −7 test/builder_test.rb
View
@@ -18,9 +18,6 @@ module ShowFor
mattr_accessor :blank_content_class
@@blank_content_class = "blank"
- mattr_accessor :blank_content
- @@blank_content = ""
-
mattr_accessor :wrapper_tag
@@wrapper_tag = :p
@@ -226,13 +226,6 @@ def with_content_for(object, value, options={})
end
end
- test "show_for#content with blank value fallbacks on a default value" do
- swap ShowFor, :blank_content => "Not specified" do
- with_content_for @user, nil, :content_tag => :b
- assert_select "div.show_for b", "Not specified"
- end
- end
-
# COLLECTIONS
test "show_for accepts an attribute as a collection" do
with_attribute_for @user, :scopes

3 comments on commit 9d84303

@grimen
grimen commented on 9d84303 May 14, 2010

Nooooo, why? =o

@josevalim
Member

We have I18n support.

@grimen
grimen commented on 9d84303 May 15, 2010

Oh, I have missed that for some reason. Cool.

Please sign in to comment.