custom_attributes_scaffold 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb5d6cc4379a5c143e91793d0b58a4cdc0a2cbd3
|
4
|
+
data.tar.gz: 120788e1adae8c4c43595a84d0bbdb873e465049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af0ebda1900c30632328840d44a154f53dd59081b7186bc175a0b441cc552d8f6f9a4f0708c78e7a2c0c0cf9083d07e2f090e990fffb80ea04ef6ba13e72267
|
7
|
+
data.tar.gz: b0e389949a2702b934d0736a12a7c297a549d153692c888a8cda652f7dbddce9d6a8bd115b66ef12ac00d79333fe84711b86d8991cd4a4eaf127bd49390978d8
|
@@ -1,21 +1,11 @@
|
|
1
1
|
<% link_to_edit ||= nil %>
|
2
2
|
<% link_to_delete ||= nil %>
|
3
|
-
<% remote_links ||= false %>
|
4
|
-
|
5
3
|
<% cssClasses ||= {} %>
|
6
4
|
|
7
5
|
<div class="custom-attributes row">
|
8
6
|
<div class="actions_links pull-right">
|
9
|
-
|
10
|
-
|
11
|
-
<i class="icon-pencil"></i>Edit
|
12
|
-
<% end %>
|
13
|
-
<% end %>
|
14
|
-
<% if link_to_delete %>
|
15
|
-
<%= link_to link_to_delete, remote: remote_links, method: :delete, class: "edit text_style" do %>
|
16
|
-
<i class="icon-trash"></i>Delete
|
17
|
-
<% end %>
|
18
|
-
<% end %>
|
7
|
+
<%= link_to_edit if link_to_edit %>
|
8
|
+
<%= link_to_delete if link_to_delete %>
|
19
9
|
</div>
|
20
10
|
|
21
11
|
<div class="custom-attributes definition title <%=cssClasses[:title]%>">
|
@@ -19,7 +19,7 @@ class CreateCustomAttributesFor<%= name %> < ActiveRecord::Migration
|
|
19
19
|
t.string :type
|
20
20
|
t.text :string_value
|
21
21
|
t.integer :integer_value
|
22
|
-
t.decimal :double_value
|
22
|
+
t.decimal :double_value, precision: 54, scale: 9
|
23
23
|
t.datetime :date_time_value
|
24
24
|
t.references :<%= singular_table_name %>, foreign_key: true
|
25
25
|
t.references :<%= singular_table_name %>_custom_attribute_definition, foreign_key: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_attributes_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tariq Hussain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|