fuel 0.3.25 → 0.3.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60036a5b7b7e4e7522c02cc010da3bba8fbbd147
4
- data.tar.gz: 5cb4f5f4f1da05a36bbd43dba274364c81a2c250
3
+ metadata.gz: 2c1112035abc422c172871bc422f4454cd7dc439
4
+ data.tar.gz: b08740f6937d95bc7c64848550b8d594e929abd1
5
5
  SHA512:
6
- metadata.gz: 7295e740b0c2ca5d765376d22a4c0178e47347fcd61c33cc689c4c34c137c0874d91ed39f05ffe7279896916a8a3500092cca3297b958ff82a09b0cda0f10384
7
- data.tar.gz: fb4affe713fb3b0ea38319b7397b095982172e6e19d738485da75997e0e7de2c9022978bafea61576484daabea03278c8c98112c170dab4204c65ccd1bd4ad4c
6
+ metadata.gz: c3585a9522fd8051fe052f6d8994922e8cc7620985bb1bf4b748fd0b223fcebfbfe943a917c47ebf9448d6e93acd5e7f086db2b4b21ee23c785e45b8340127d6
7
+ data.tar.gz: 4c240eaaa33e7524d34029c21c02123a9546e841d80b026fb8439e4e18a10ef82f5e21ba58ea341b71db5e7d9d08ede17dd44492229819bd9f342243e483a776
@@ -51,7 +51,9 @@
51
51
  </fieldset>
52
52
  <fieldset>
53
53
  <%= f.submit (action_name == "edit" ? "Update Post" : "Create Post"), class: 'button button--secondary' %>
54
- <%= link_to 'Delete Post', fuel.admin_post_path(@post), method: :delete, confirm: "Are you sure you want to delete this post?", class: "delete-post button button--danger" %>
54
+ <% if @post.id %>
55
+ <%= link_to 'Delete Post', fuel.admin_post_path(@post), method: :delete, confirm: "Are you sure you want to delete this post?", class: "delete-post button button--danger" %>
56
+ <% end %>
55
57
  </fieldset>
56
58
  </div>
57
59
  <% end %>
data/lib/fuel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.3.25"
2
+ VERSION = "0.3.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.25
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis