bhf 0.5.0 → 0.5.1
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.
|
@@ -102,7 +102,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
|
|
|
102
102
|
def object_to_bhf_display_hash
|
|
103
103
|
@platform.columns.each_with_object({to_bhf_s: @object.to_bhf_s, edit_path: edit_bhf_entry_path(@platform.name, @object), object_id: @object.id}) do |column, hash|
|
|
104
104
|
unless column.field.macro == :column && @object.send(column.name).blank?
|
|
105
|
-
p = "bhf/pages/macro/#{column.field.macro}/#{column.field.display_type}
|
|
105
|
+
p = "bhf/pages/macro/#{column.field.macro}/#{column.field.display_type}"
|
|
106
106
|
hash[column.name] = render_to_string partial: p, locals: {column: column, object: @object}
|
|
107
107
|
end
|
|
108
108
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
- if f.object.errors.any?
|
|
5
5
|
= render partial: 'bhf/entries/validation_errors', locals: {f: f}
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
- @platform.fields.each do |field|
|
|
8
8
|
- unless field.form_type == :hidden
|
|
9
9
|
= render partial: "bhf/entries/form/#{field.macro}/#{field.form_type}", locals: {f: f, field: field}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bhf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,24 +9,8 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-07-
|
|
12
|
+
date: 2013-07-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
|
-
- !ruby/object:Gem::Dependency
|
|
15
|
-
name: rails
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
|
-
requirements:
|
|
19
|
-
- - ! '>='
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: 4.0.0
|
|
22
|
-
type: :runtime
|
|
23
|
-
prerelease: false
|
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- - ! '>='
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 4.0.0
|
|
30
14
|
- !ruby/object:Gem::Dependency
|
|
31
15
|
name: rails
|
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|