bootstrap-on 0.0.4 → 0.0.5
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.
- data/VERSION +1 -1
- data/bootstrap-on.gemspec +1 -1
- data/lib/bootstrap-on/templates/page/controller.rb.tt +3 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.5
|
data/bootstrap-on.gemspec
CHANGED
|
@@ -16,6 +16,7 @@ Admin.controllers :<%= @orm.name_plural %> do
|
|
|
16
16
|
flash[:notice] = "#{mt(<%= @orm.klass_name %>)} was successfully created."
|
|
17
17
|
redirect url(:<%= @orm.name_plural %>, :edit, :id => @<%= @orm.name_singular%>.id)
|
|
18
18
|
else
|
|
19
|
+
flash.now[:error] = "There were some problems creating this #{mt(<%= @orm.klass_name %>)}."
|
|
19
20
|
render '<%= @orm.name_plural %>/new'
|
|
20
21
|
end
|
|
21
22
|
end
|
|
@@ -31,6 +32,7 @@ Admin.controllers :<%= @orm.name_plural %> do
|
|
|
31
32
|
flash[:notice] = "#{mt(<%= @orm.klass_name %>)} was successfully updated."
|
|
32
33
|
redirect url(:<%= @orm.name_plural %>, :edit, :id => @<%= @orm.name_singular %>.id)
|
|
33
34
|
else
|
|
35
|
+
flash.now[:error] = "There were some problems updating this #{mt(<%= @orm.klass_name %>)}."
|
|
34
36
|
render '<%= @orm.name_plural %>/edit'
|
|
35
37
|
end
|
|
36
38
|
end
|
|
@@ -40,7 +42,7 @@ Admin.controllers :<%= @orm.name_plural %> do
|
|
|
40
42
|
if <%= @orm.destroy %>
|
|
41
43
|
flash[:notice] = "#{mt(<%= @orm.klass_name %>)} was successfully destroyed."
|
|
42
44
|
else
|
|
43
|
-
flash[:error] = 'Unable to destroy <%= @orm.klass_name
|
|
45
|
+
flash[:error] = 'Unable to destroy #{mt(<%= @orm.klass_name %>)}!'
|
|
44
46
|
end
|
|
45
47
|
redirect url(:<%= @orm.name_plural %>, :index)
|
|
46
48
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bootstrap-on
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Stuart Chinery
|