kablam 0.2.2 → 0.2.3
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 +2 -2
- 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: 0f1b9136067229bf9d70ce67ed3349219a194489fec4fe7eeeb3bafb31d10015
|
4
|
+
data.tar.gz: 75253848dfbf91b9ef1850c7f46d4c8d20b4ccdb3fc9629613ef930c13a3006e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbacb7c24019d7f37c68f3766767859f9ebafd8dae289dd81dbdfdfd35bd9f2d2ebc2552a0c27b4a9d88d629ebf3d61dc74f4f5915e4dd076c8915e7b0b95b3f
|
7
|
+
data.tar.gz: 2a0996464bd3486a3d03fb32da7b15f727ca1a558e6be5f200c3171d5e194c9191479d82bc96223378b7e311468df9663dad4988fe6757be7595f4fd8857ae1a
|
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.3'
|
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,11 +1,11 @@
|
|
1
1
|
module Kablam
|
2
2
|
class Forms
|
3
3
|
def self.render_edit(obj, target_id, table_id, opt={})
|
4
|
-
"<a class
|
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={})
|
8
|
-
"<a data-disable-with
|
8
|
+
"<a data-disable-with=\'…\' class=\'#{opt[:class]}\' data-remote=\'true\' rel=\'nofollow\' data-method=\'delete\' href=\'/kablam/#{obj.class.table_name}/#{obj.id}\'>#{opt[:text] || "Remove"}</a>"
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.default_classes
|