kablam 0.2.9 → 0.3.0

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
  SHA256:
3
- metadata.gz: 97a145e87413710a83b558049de185a9123526407d3fca6ed99715167d0d9718
4
- data.tar.gz: 5266f0fd8782cc94507b586e99bd480be05cbd2b0fa2d333ec189430d894d99e
3
+ metadata.gz: 6c46e6086ff94a714e2543b2ccde4b640eac31ca7355cc69983533d6e0e89d5d
4
+ data.tar.gz: fa24731041db437ac8b734153412768f2d260a5f2024f59ce539bb5884c51c0e
5
5
  SHA512:
6
- metadata.gz: c6668f606d7c51abee9f3f1d80e98562130fea337a086f359f2f3edf17a90d8510addbc16e330aa4aa5df6bd962a6509d551d327369efbf57e9602b33be3c171
7
- data.tar.gz: 5535eafaa22f108ab564a7cf60960a967a41a2b3eaac67c1334a7a68ff955feffb3ffe74f84c63d5c72f5604f3db63e192246959a3ec4fa7aff2a3b4ac30d909
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 ? kablam.create_path(@table_name) : kablam.update_path(@table_name, obj.id))
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.2.9'
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.}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kablam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rivas