tiny_cms 0.2.1 → 0.2.2

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 CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1,4 +1,4 @@
1
- class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
1
+ class TinyCmsCreate<%= table_name.camelize %> < ActiveRecord::Migration
2
2
  def self.up
3
3
  create_table :<%= table_name %> do |t|
4
4
  t.integer :parent_id
@@ -8,7 +8,7 @@ class TinyCmsGenerator < Rails::Generator::NamedBase
8
8
  m.template 'model.rb', "app/models/#{file_path}.rb"
9
9
 
10
10
  m.directory "app/controllers/#{class_path}"
11
- m.template 'model.rb', "app/controllers/#{plural_name}_controller.rb"
11
+ m.template 'controller.rb', "app/controllers/#{plural_name}_controller.rb"
12
12
 
13
13
  m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "tiny_cms_create_#{table_name}"
14
14
  m.route_tiny_cms table_name
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Macario