Skip to content

Commit

Permalink
Making HoboFields::HtmlString a subclass of HoboFields::Text and remo…
Browse files Browse the repository at this point in the history
…ving <input for='html'>
  • Loading branch information
tslocke committed May 19, 2008
1 parent b08a50d commit 36faeea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions hobo/taglibs/rapid_forms.dryml
Expand Up @@ -142,10 +142,6 @@
<%= password_field_tag(name, this, attributes) %>
</def>

<def tag="input" for="html" attrs="name">
<%= text_area_tag(name, this, add_classes(attributes, :tiny_mce)) %>
</def>

<def tag="input" for="date" attrs="order">
<% order = order.nil? ? [:year, :month, :day] : comma_split(order).*.to_sym -%>
<%= select_date(this || Time.now, attributes.merge(:prefix => param_name_for_this, :order => order)) %>
Expand Down
4 changes: 1 addition & 3 deletions hobofields/lib/hobo_fields/html_string.rb
@@ -1,9 +1,7 @@
module HoboFields

class HtmlString < String
class HtmlString < HoboFields::Text

COLUMN_TYPE = :text

def to_html
self
end
Expand Down

0 comments on commit 36faeea

Please sign in to comment.