Skip to content

Commit

Permalink
Jfb/2023 10 01 v0.5.23.1 (#123)
Browse files Browse the repository at this point in the history
* fixes new output on enum partials

* v0.5.23.1
  • Loading branch information
jasonfb authored Oct 1, 2023
1 parent 18d494e commit 789cea5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
hot-glue (0.5.23)
hot-glue (0.5.23.1)
ffaker (~> 2.16)
kaminari (~> 1.2)
rails (> 5.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hot_glue/fields/enum_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def line_field_output
end

def partial_render
"<%= render partial: #{singular}.#{name}, locals: { #{singular}: #{singular} } %>"
"<% if #{singular}.#{name} %><%= render partial: #{singular}.#{name}, locals: { #{singular}: #{singular} } %><% end %>"
end


Expand Down
2 changes: 1 addition & 1 deletion lib/hotglue/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module HotGlue
class Version
CURRENT = '0.5.23'
CURRENT = '0.5.23.1'
end
end

0 comments on commit 789cea5

Please sign in to comment.