lib/generators/adminpanel/gallery/gallery_generator.rb in adminpanel-2.6.1 vs lib/generators/adminpanel/gallery/gallery_generator.rb in adminpanel-3.0.0
- old
+ new
@@ -10,17 +10,9 @@
def generate_uploader
template 'uploader.rb', "app/uploaders/adminpanel/#{lower_name}_uploader.rb"
end
- def generate_migration
- migration_template(
- 'gallery_migration.rb',
- "db/migrate/create_adminpanel_#{lower_name.pluralize}.rb"
- )
- puts "don't forget to add the form_field, the relationship and #{lower_name}s_attributes it to the permited params"
- end
-
private
def reference_name
name.singularize.downcase
end