scaffold_pico 1.0.0 → 1.1.0

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: 51f562ce19e922d879648cf3db894dea6a96a9c6
4
- data.tar.gz: 1321074674bc39be2a893ff9bbcd4dda70259d5e
3
+ metadata.gz: adabe54ded80e5976a75d4d65aa7ce6dc8a41b07
4
+ data.tar.gz: bb86d680ce7e83d132d36df32eb9494a94b52e17
5
5
  SHA512:
6
- metadata.gz: 8bfcbd09575b717f2720f3ffdf1f1c45e7c40f904ff8607d333f4f7859a2a7bc5cc862b5a9ea40b002f4ea8ed694829abbf40e1d659f989a1ee0c72ffc37ed09
7
- data.tar.gz: 220ba11acff7b3cd7a610eef5edaaf1add7e2b94530ee2e5fddaef3dc8b9403261db18c2c96b5381e39c4cd82771f3079df0f10eba7e44fc58caa21e6c55e3f8
6
+ metadata.gz: a0997f57d71aef0078b86c9e4539a7ba2ec25dc3b1931f1829ff1752bbebb971d51a527678515b7fce1d5b8347650551b474d93e916c5b06503a1bf9908956a4
7
+ data.tar.gz: bb46f812cf2eebdf80817bef01bc95267189616b219fc9ac95502757ce1ea53f41e9f23d21824491a4ec3d77ef6d5cc4c39edeca14ce9cc654635fa518395f95
data/README.md CHANGED
@@ -2,18 +2,18 @@
2
2
  ## Scaffolding done right
3
3
  With this gem you can create your own pretty administration with a seconds.
4
4
 
5
- No learning curve.
5
+ No learning curve - clean Ruby on Rails.
6
6
 
7
7
  No need to learn DSLs or support 3rd party gems.
8
8
 
9
-
10
9
  * Support namespaces for the model and the controllers
11
- * Generate fabricators
12
- * Supports different css frameworks - zurb / materializecss
13
- * Can specify different fields for #index, #edit/new and search
10
+ * You can generate scaffolds for nested resources
14
11
  * Can override every file per project
12
+ * Supports different css frameworks - zurb / materializecss
13
+ * Generate fabricators
14
+ * Define #index, #edit/new and search during the scafold creation
15
15
  * You can specify includes/joins for the #index action
16
- * Includes search
16
+ * Implement basic search
17
17
 
18
18
  ![alt tag](https://raw.githubusercontent.com/gudata/scaffold_pico/master/doc/screenshot_index.jpg)
19
19
 
@@ -93,4 +93,4 @@ You can't generate scaffolds for a mounted named engines. I don't know if we nee
93
93
 
94
94
  ## Copyright
95
95
 
96
- Copyright (c) 2017 gudata. See LICENSE.txt for further details.
96
+ Copyright (c) 2017 gudata. See LICENSE.txt for further details.
@@ -1,5 +1,7 @@
1
1
  class <%= @rails.controller.class_name %> < <%= @rails.controller.base_controller %>
2
2
 
3
+ protect_from_forgery with: :exception
4
+
3
5
  <% @rails.nested_in_resources.each do |resource| -%>
4
6
  def <%= resource.name %>
5
7
  <%= resource.instance_name %> ||= <%= resource.class_name_with_modules %>.find(params[:<%= resource.param_name %>])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_pico
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gudata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-05 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport