lib/itamae/resource/link.rb in itamae-1.0.0.beta33 vs lib/itamae/resource/link.rb in itamae-1.0.0.beta34
- old
+ new
@@ -6,10 +6,10 @@
define_attribute :action, default: :create
define_attribute :link, type: String, default_name: true
define_attribute :to, type: String, required: true
def pre_action
- case action
+ case @current_action
when :create
@attributes[:exist?] = true
end
end