pattern_bibz 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/pattern_bibz/templates/model.rb +3 -3
- data/lib/pattern_bibz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f5369152845fdbc8e19d533e3f1e98f405d3f68be7bdd37b382e2735dbb673b
|
4
|
+
data.tar.gz: e749aef193207c6b23c631fcc7b4ff953a4721dd5316641de57ff5937f38bf13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e352d8e9227f4a69702fa680b13253057674120b068c648c271623b8854d3cbb21e5c48b5691f2629d6c36d6b70978c1f71457f6fa8ccbb671bb31c656ac1e49
|
7
|
+
data.tar.gz: 30a166020233dbe7c379445e95ec299dc99292ad84a130c9d5eb75af91b53da84e572ae2837606817f887493e581a3741246470b31630706b517f4a146d0a7df
|
@@ -9,9 +9,9 @@ class <%= class_name %> < <%= parent_class_name.classify %>
|
|
9
9
|
# Attr_accessors
|
10
10
|
|
11
11
|
# Associations
|
12
|
-
<% attributes.select(&:reference?).each do |attribute
|
13
|
-
belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic?
|
14
|
-
<% end
|
12
|
+
<% attributes.select(&:reference?).each do |attribute| -%>
|
13
|
+
belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %>
|
14
|
+
<% end -%>
|
15
15
|
<% attributes.select(&:rich_text?).each do |attribute| -%>
|
16
16
|
has_rich_text :<%= attribute.name %>
|
17
17
|
<% end -%>
|
data/lib/pattern_bibz/version.rb
CHANGED