app/helpers/turbolinks_animate_helper.rb in turbolinks-animate-1.3.0 vs app/helpers/turbolinks_animate_helper.rb in turbolinks-animate-2.0.0
- old
+ new
@@ -2,23 +2,6 @@
def turbolinks_animate animation
@turbolinks_animate_animation = animation.is_a?(Hash) ? animation.to_json : animation
end
- def turbolinks_animate_body options = {}, &block
- default_options = {
- class: '',
- data: {}
- }
- options = default_options.merge options
- if @turbolinks_animate_animation
- options[:class] += ( options[:class].length > 0 ? ' turbolinks-animate' : 'turbolinks-animate' )
- options[:data][:turbolinks_animate_animation] = @turbolinks_animate_animation
- end
- if block_given?
- content_tag 'body', capture(&block), options
- else
- content_tag 'body', options
- end
- end
-
end