diff --git a/lib/generators/version/USAGE b/lib/generators/version/USAGE deleted file mode 100644 index 6a75545c52..0000000000 --- a/lib/generators/version/USAGE +++ /dev/null @@ -1 +0,0 @@ -Will generate custom PaperTrail version model diff --git a/lib/generators/version/templates/version.rb.erb b/lib/generators/version/templates/version.rb.erb deleted file mode 100644 index 336b3a5c00..0000000000 --- a/lib/generators/version/templates/version.rb.erb +++ /dev/null @@ -1,4 +0,0 @@ -class <%= class_name %>Version < PaperTrail::Version - self.table_name = :log_<%= file_name.tableize %> - self.sequence_name = :log_<%= file_name.tableize %>_id_seq -end diff --git a/lib/generators/version/version_generator.rb b/lib/generators/version/version_generator.rb deleted file mode 100644 index 343f88068e..0000000000 --- a/lib/generators/version/version_generator.rb +++ /dev/null @@ -1,11 +0,0 @@ -class VersionGenerator < Rails::Generators::NamedBase - source_root File.expand_path("../templates", __FILE__) - - def create_version_file - template "version.rb.erb", "app/models/version/#{file_name}_version.rb" - end - - def class_name - file_name.camelize - end -end