Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/hallo_rails.rb

  • Loading branch information...
commit 1269cd92b3787de6e6adbc4dc51a898c5baf0e72 1 parent 3c63bf1
@kashif-umair authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/hallo_rails.rb
View
8 lib/hallo_rails.rb
@@ -18,10 +18,10 @@ module ViewHelpers
def editable object, method, options = {}
object_name = object.class.to_s.underscore
- options.reverse_merge! tag: :div,
- content: object.send(method).try(:html_safe),
- update_url: "/#{object_name.pluralize}/#{object.to_param}",
- blank_text: "<i>Click to Edit</i>".html_safe
+ options.reverse_merge! :tag :div,
+ :content object.send(method).try(:html_safe),
+ :update_url "/#{object_name.pluralize}/#{object.to_param}",
+ :blank_text "<i>Click to Edit</i>".html_safe
options[:content] = sanitize(options[:content]) if options[:sanitize]
Please sign in to comment.
Something went wrong with that request. Please try again.