redde 0.0.7 → 0.0.8
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.
|
@@ -7,9 +7,7 @@ module Redde
|
|
|
7
7
|
source_root File.expand_path('../templates', __FILE__)
|
|
8
8
|
argument :controller_path, :type => :string
|
|
9
9
|
argument :model_name, :type => :string, :required => false
|
|
10
|
-
|
|
11
|
-
:banner => "Specify application layout"
|
|
12
|
-
|
|
10
|
+
|
|
13
11
|
def initialize(args, *options)
|
|
14
12
|
super(args, *options)
|
|
15
13
|
initialize_views_variables
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
%td= link_to <%= resource_name %>.<%= column.name %>, [:edit, :admin, <%= resource_name %>]
|
|
31
31
|
<%- end -%>
|
|
32
32
|
<%- end -%>
|
|
33
|
-
%td= link_to "Удалить", [:admin, <%= resource_name %>], :
|
|
33
|
+
%td= link_to "Удалить", [:admin, <%= resource_name %>], method: :delete, data: { confirm: "Точно Удалить?" }, class: :del
|
|
34
34
|
|
|
35
35
|
<%- if column_names.include?("position") -%>
|
|
36
36
|
= sortable sort_admin_<%= plural_resource_name %>_path
|
data/lib/redde/version.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
|
3
3
|
describe Redde::Generators::ScaffoldGenerator do
|
|
4
4
|
include GeneratorSpec::TestCase
|
|
5
5
|
destination File.expand_path("../../tmp", __FILE__)
|
|
6
|
-
# arguments 'CategoryValues'
|
|
6
|
+
# arguments ['CategoryValues']
|
|
7
7
|
|
|
8
8
|
before(:all) do
|
|
9
9
|
prepare_destination
|
|
@@ -11,7 +11,7 @@ describe Redde::Generators::ScaffoldGenerator do
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
after(:all) do
|
|
14
|
-
FileUtils.rm_rf 'tmp'
|
|
14
|
+
# FileUtils.rm_rf 'tmp'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
describe "scaffold" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redde
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: russian
|