Skip to content

Commit eebad77

Browse files
committed
Move tag_attributes merge to rb file
1 parent 6944cbe commit eebad77

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/concepts/matestack/ui/core/ins/ins.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%ins{@tag_attributes.merge({:cite => options[:cite], :datetime => options[:datetime]})}
1+
%ins{@tag_attributes}
22
- if options[:text].nil? && block_given?
33
= yield
44
- else
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module Matestack::Ui::Core::Ins
22
class Ins < Matestack::Ui::Core::Component::Static
3-
3+
def setup
4+
@tag_attributes.merge!({
5+
cite: options[:cite],
6+
datetime: options[:datetime]
7+
})
48
end
59
end

0 commit comments

Comments
 (0)