support integer fields
This commit is contained in:
parent
4f01867bbe
commit
3ecbfd904b
|
@ -42,7 +42,7 @@ module SemanticRailsViewHelpers
|
||||||
value = @context.render(:partial => "attributes/#{options[:as]}", :locals => { :object => @object, :field => field, :raw_value => raw_value, :value => value })
|
value = @context.render(:partial => "attributes/#{options[:as]}", :locals => { :object => @object, :field => field, :raw_value => raw_value, :value => value })
|
||||||
end
|
end
|
||||||
|
|
||||||
(value or '').html_safe
|
(value or '').to_s.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
def field!(field, options = {}, &block)
|
def field!(field, options = {}, &block)
|
||||||
|
|
Loading…
Reference in New Issue