redde 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- argument :layout, :type => :string, :default => "application",
11
- :banner => "Specify application layout"
12
-
10
+
13
11
  def initialize(args, *options)
14
12
  super(args, *options)
15
13
  initialize_views_variables
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
- class Admin::<%= model_name.demodulize -%>Controller < Admin::BaseController
2
+ class Admin::<%= model_name.demodulize.pluralize -%>Controller < Admin::BaseController
3
3
 
4
4
  def index
5
5
  @<%= plural_resource_name %> = <%= model_name.demodulize -%>.all
@@ -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 %>], :method => :delete, :confirm => "Удалить?", class: :del
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
@@ -1,3 +1,3 @@
1
1
  module Redde
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -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.7
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-11-01 00:00:00.000000000 Z
12
+ date: 2013-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: russian