smug 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60e8d00cd90e16f1b7e90558009019dac99eb563
4
- data.tar.gz: df6ace8d1016a80ada77463bbd9a510c372f53c2
3
+ metadata.gz: c6915f1d823079953e189fa0627a663b727bd08b
4
+ data.tar.gz: c83950a46722cc07df81fc6f18a1a6292dda04a0
5
5
  SHA512:
6
- metadata.gz: 57b0788a07ed588eee0267c90ad6c4bd020c131619a53bd687a818945fc9aa94b2061fc9da1b9c18e5ac6e9e9d9fe96425533ec60b8f26398578211beb74b526
7
- data.tar.gz: c36a64f5ed5a4c5b36cb0af15cf9ba1f4209943e15c38a0a724bb7129d0b542e89d751837e37331a87703fc25a5b36fb3723e57098cce118f9c650e4a37daf28
6
+ metadata.gz: c9d21b7f4bdfb33352eaf69f7ac0f6010acceaf5f2152fc82a010af3344d6c674175dadfc45615b812489ed6ab3fae04fa9b66b1d7c26f41c90737952312f89b
7
+ data.tar.gz: cd6f6122c09d3503f506bbea334737ba694ddbdb1a1675c7ced30db9bff67aedbda1b30f5e11d3aff23201ed699973615f4acad0014fb8ad03ad8a92c8e88a75
@@ -1,4 +1,8 @@
1
1
  = simple_form_for [:admin, @item.object] do |f|
2
+ - begin
3
+ = render "smug/admin/#{controller.class.model_name.route_key}/before_form"
4
+ - rescue ActionView::MissingTemplate
5
+ / do nothing
2
6
  - controller.class.edit_attrs.each do |attr|
3
7
  - if controller.class.input_mappings.has_key? attr
4
8
  = f.input attr, hint: :translate,
@@ -13,4 +17,8 @@
13
17
  = render "#{nested_association.klass.model_name.singular_route_key}_fields", f: j
14
18
  .links
15
19
  = link_to_add_association "Add", f, nested_association.name, class: "btn btn-default"
20
+ - begin
21
+ = render "smug/admin/#{controller.class.model_name.route_key}/after_form"
22
+ - rescue ActionView::MissingTemplate
23
+ / do nothing
16
24
  = f.button :submit
@@ -1,3 +1,3 @@
1
1
  module Smug
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Bolt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-06 00:00:00.000000000 Z
11
+ date: 2016-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler