lib/lotus/helpers/form_helper/html_node.rb in lotus-helpers-0.2.0 vs lib/lotus/helpers/form_helper/html_node.rb in lotus-helpers-0.2.5
- old
+ new
@@ -3,11 +3,11 @@
module Lotus
module Helpers
module FormHelper
# HTML form node
#
- # @since x.x.x
+ # @since 0.2.0
# @api private
#
# @see Lotus::Helpers::HtmlHelper::HtmlNode
class HtmlNode < ::Lotus::Helpers::HtmlHelper::HtmlNode
# Initialize a new HTML form node
@@ -17,11 +17,11 @@
# @param attributes [Hash,NilClass] the optional tag attributes
# @param options [Hash] a set of data
#
# @return [Lotus::Helpers::FormHelper::HtmlNode]
#
- # @since x.x.x
+ # @since 0.2.0
# @api private
def initialize(name, content, attributes, options)
super
@verb = options.fetch(:verb, nil)
@@ -36,11 +36,11 @@
private
# Resolve the (nested) content
#
# @return [String] the content
#
- # @since x.x.x
+ # @since 0.2.0
# @api private
#
# @see Lotus::Helpers::HtmlHelper::HtmlNode#content
def content
_method_override!
@@ -48,11 +48,11 @@
super
end
# Inject a hidden field to make Method Override possible
#
- # @since x.x.x
+ # @since 0.2.0
# @api private
def _method_override!
return if @verb.nil?
verb = @verb
@@ -61,10 +61,10 @@
end
end
# Inject a hidden field for CSRF Protection token
#
- # @since x.x.x
+ # @since 0.2.0
# @api private
def _csrf_protection!
return if @csrf_token.nil?
_csrf_token = @csrf_token