kablam 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/kablam/destroy.js.erb +1 -1
- data/app/views/kablam_forms/_form_generator.html.erb +1 -1
- data/kablam.gemspec +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: 6c46e6086ff94a714e2543b2ccde4b640eac31ca7355cc69983533d6e0e89d5d
|
4
|
+
data.tar.gz: fa24731041db437ac8b734153412768f2d260a5f2024f59ce539bb5884c51c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69a6e72ecae1eb08019f742e5e066d6cf302669d0c16d25d5f2490ef746de1e4c9b05b6671c2976c789a0b3de8f8d846d8e24debdb28705e015117358f32ce72
|
7
|
+
data.tar.gz: 61988e66d37ac27a22b794c22a6ecf730abd580de4725d8a009ef40e4fd450569681a5e7864b9e0a67941152359a1995a4696b7b6f8a53fc73be40eb07894abb
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= hide @object %>
|
2
2
|
<% if @object.undoable? %>
|
3
3
|
<%= render_flash message: 'Deleted', partial: 'application/flash_undo',
|
4
|
-
link: button_to('Undo', undo_path(@object.class.table_name, @object,
|
4
|
+
link: button_to('Undo', Kablam::Engine.routes.url_helpers.undo_path(@object.class.table_name, @object,
|
5
5
|
@object.model_name.singular.to_sym => { destroyed_at: nil }),
|
6
6
|
{data: { disable_with: 'Restoring…' },
|
7
7
|
class: 'no-underline mt3 f4 tc pv2 ph4 white bg-black hover-bg-green shadow-5',
|
@@ -5,7 +5,7 @@
|
|
5
5
|
@method = (obj.id.blank? ? :post : :patch)
|
6
6
|
@form_name = @model.to_s.underscore
|
7
7
|
@form_id = "#{obj.id.blank? ? "new" : "update"}_#{@form_name}_form"
|
8
|
-
@url = (@method == :post ?
|
8
|
+
@url = (@method == :post ? Kablam::Engine.routes.url_helpers.create_path(@table_name) : Kablam::Engine.routes.url_helpers.update_path(@table_name, obj.id))
|
9
9
|
%>
|
10
10
|
|
11
11
|
<%= form_with model: obj, url: @url, method: @method, id: @form_id, class: classes[:form_wrapper] do |f| %>
|
data/kablam.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'kablam'
|
3
|
-
s.version = '0.
|
3
|
+
s.version = '0.3.0'
|
4
4
|
s.date = Time.now.strftime("%Y-%m-%d")
|
5
5
|
s.summary = "Kablam! All the things you hate. But Faster."
|
6
6
|
s.description = "Gem to make development of everything in rails faster. Form creation & styling, all the resource routes, even actioncable messaging!\n {NOTE: In Development. NOT READY FOR TESTING.}"
|