sharp_admin 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 185f6c456428c9e2503a8ff72059a8c30aeb0a2d
|
4
|
+
data.tar.gz: 87f81a9402331cdafb718b5ef7d961eb6ed2875a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a05c87def49b70dfbd0cd72b75ac8edacc5eedb2beb633d4ccd698e92f6e01657dd3c3a6f3cd80e535c0569a9fbb9b91f6a690e71a252606c5720733722173e
|
7
|
+
data.tar.gz: 346ecd1be305fbd737de4ac65c48fdc75441ef6ec7a11f1572a6cdf6280f424682ccb4c6b194139e4830beee1fe2dc7fdd072393d7fdeee4bf84f33e718244f0
|
@@ -50,7 +50,7 @@ class SharpAdminGenerator < Rails::Generators::NamedBase
|
|
50
50
|
|
51
51
|
def add_resource_route
|
52
52
|
return if not File.exists?("config/routes.rb")
|
53
|
-
route_config = "namespace
|
53
|
+
route_config = "namespace :#{options[:ns]} do "
|
54
54
|
route_config << "resources :#{file_name.pluralize}"
|
55
55
|
route_config << " end"
|
56
56
|
route route_config
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
<% if options[:search_by].present? -%>
|
5
5
|
= search_form_for @q, :url => <%= options[:ns] %>_<%= plural_table_name %>_path, :html => { :method => :get, :class => "well form-inline" } do |f|
|
6
|
-
.class
|
6
|
+
.class.form-group
|
7
7
|
= f.text_field :<%= options[:search_by] %>_cont, :type => "search", :class => "form-control", :placeholder => "Search by <%= options[:search_by] %>"
|
8
8
|
|
9
9
|
= f.submit "Search", :class => "btn btn-default"
|
data/lib/sharp_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sharp_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sharp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -74,7 +74,6 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- MIT-LICENSE
|
77
|
-
- README.rdoc
|
78
77
|
- Rakefile
|
79
78
|
- lib/sharp_admin.rb
|
80
79
|
- lib/sharp_admin/sharp_admin_generator.rb
|
data/README.rdoc
DELETED