-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinit.rb
More file actions
27 lines (21 loc) · 742 Bytes
/
init.rb
File metadata and controls
27 lines (21 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'stakr/html_attributes/array'
require 'stakr/html_attributes/hash'
require 'stakr/html_attributes/numeric'
require 'stakr/html_attributes/object'
require 'stakr/html_attributes/tag_helper'
::Array.class_eval do
include ::Stakr::HtmlAttributes::Array
end
::Hash.class_eval do
include ::Stakr::HtmlAttributes::Hash
end
::Numeric.class_eval do
include ::Stakr::HtmlAttributes::Numeric
end
::Object.class_eval do
include ::Stakr::HtmlAttributes::Object
end
::ActionView::Helpers::TagHelper.module_eval do
include ::Stakr::HtmlAttributes::TagHelper
end
::ActionView::Helpers::TagHelper::BOOLEAN_ATTRIBUTES.merge([:selected, :compact, :noresize, :noshade, :ismap, :declare, :defer, :nowrap].map { |a| [a, a.to_s] }.flatten)