kablam 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kablam.gemspec +1 -1
- data/lib/kablam/forms.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: 765246fca2f0d90ce4e6a55f245be6669cf15e4e1dc76859489fbc6136f2a014
|
4
|
+
data.tar.gz: b0bdbaa3b909f30af00e8817fc49093461bc5a686a166025e150aacbed36abf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f9c9eee56ba9777add4dc062f360deed3dee1a38d8458f409a76ca93095d112e451d876f5c758f9897cbdc6d96e8f85ca0fdec8edf9d7b510c55dce9064cbc
|
7
|
+
data.tar.gz: b3034e8d9d2e7ddffc3101c5e170f1fb2a916112c84c73e6d289de00640acc00892260260cb0f08281cba5285c29c334cc9b8dd4cfd0cdba0115f908fa405e6d
|
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.
|
3
|
+
s.version = '0.2.2'
|
4
4
|
s.date = '2018-09-14'
|
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.}"
|
data/lib/kablam/forms.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Kablam
|
2
2
|
class Forms
|
3
3
|
def self.render_edit(obj, target_id, table_id, opt={})
|
4
|
-
"<a class='#{opt[:class]}' onclick='event.preventDefault();load(
|
4
|
+
"<a class='#{opt[:class]}' onclick='event.preventDefault();load(\"#{target_id}\", \"/kablam/#{obj.class.table_name}/form?id=#{obj.id}&target=#{table_id}\")' href='#'>#{opt[:text] || "Edit"}</a>"
|
5
5
|
end
|
6
6
|
|
7
7
|
def self.render_destroy(obj, opt={})
|