fiat_publication 0.1.0 → 0.1.1

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: b06c12e20a43ddc23ca716e8c2ea096c371aea5f
4
- data.tar.gz: 2e952bfb35e3c5ca137456e7dcbd1a0fa2ad3aa7
3
+ metadata.gz: 898a31959c6ffeeed982846a0ba477604ae4427d
4
+ data.tar.gz: 3b240033d2dbba02d72241d7bd467769c1704980
5
5
  SHA512:
6
- metadata.gz: 4d8e8c4b682625dca58a38069657818dde5b0346ea47a11a2449a0ba70c5806019e9c46243fc4103cd9672f74cbfe12ed0d70d7f71a86d5ea78537b251a8b6bd
7
- data.tar.gz: 6eb4ff437dbd7749cdc4022877498f340e853d21baa7afbdc54bf825736f4bc3e7c7ab4a57ff4f22f67170470883cbe40674a2f248a614e53a9b80038f6b48bc
6
+ metadata.gz: 94823cdebb279902c2e499c77609bda20cd190dd4681fdeca2ff1390791e10516deefabf21adc953b50b175755f1f83d436d5d7416d39efc925c4e644e643341
7
+ data.tar.gz: 50764509160b4b32e0b55cb9db7bf149b5d22d9f7fb3f5260f9420918b8bc67803419420efdff18c27c54699ef437261f4bb5f4ce5031817edc4b00a2126d8c9
data/README.md CHANGED
@@ -90,7 +90,7 @@ Displaying content just requires that you use the typical associations. For exam
90
90
 
91
91
  ```ruby
92
92
  @page.fiat_publication_content_blocks.each do |i|
93
- = render partial: 'fiat_publication/content_blocks/show', locals: { content_block: i }
93
+ = render partial: 'fiat_publication/content_blocks/show', locals: { content_block: i, my_classes: 'custom_classes_here' }
94
94
  end
95
95
  ```
96
96
 
@@ -39,7 +39,7 @@ module FiatPublication
39
39
  @content_block.destroy
40
40
 
41
41
  respond_to do |format|
42
- format.html { redirect_to account_parish_content_blocks_path(@content_block.parish), notice: 'ContentBlock was successfully deleted.' }
42
+ format.html { redirect_back(fallback_location: content_blocks_path, notice: 'Block was removed.') }
43
43
  end
44
44
  end
45
45
 
@@ -1,7 +1,9 @@
1
- <% if content_block.text? %>
2
- <%= simple_format(content_block.text_content) %>
3
- <% elsif content_block.image? %>
4
- <% if content_block.image.attached? %>
5
- <%= image_tag content_block.image.variant(resize: "1200x1200"), width: "100%" %>
1
+ <div class="<%= my_classes %>">
2
+ <% if content_block.text? %>
3
+ <%= simple_format(content_block.text_content) %>
4
+ <% elsif content_block.image? %>
5
+ <% if content_block.image.attached? %>
6
+ <%= image_tag content_block.image.variant(resize: "1200x1200"), width: "100%" %>
7
+ <% end %>
6
8
  <% end %>
7
- <% end %>
9
+ </div>
@@ -1,3 +1,3 @@
1
1
  module FiatPublication
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiat_publication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Haines