File: sqlite_generator.rb

package info (click to toggle)
ruby-neighbor 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: ruby: 840; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
require "rails/generators"

module Neighbor
  module Generators
    class SqliteGenerator < Rails::Generators::Base
      source_root File.join(__dir__, "templates")

      def copy_templates
        template "sqlite.rb", "config/initializers/neighbor.rb"
      end
    end
  end
end