Sha256: e283d4753808015054728419f0b4090ce6904902ef6248a40db8f5a3bffa9bb4

Contents?: true

Size: 435 Bytes

Versions: 25

Compression:

Stored size: 435 Bytes

Contents

require 'rails/generators/named_base'
require 'rom/rails/inflections'

module ROM
  module Generators
    class Base < ::Rails::Generators::NamedBase
      def self.base_name
        'rom'
      end

      def self.namespace
        "rom:#{generator_name}"
      end

      def self.source_root
        File.expand_path(
          "../#{base_name}/#{generator_name}/templates",
          __FILE__
        )
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rom-rails-1.1.1 lib/generators/rom.rb
rom-rails-1.1.0 lib/generators/rom.rb
rom-rails-1.0.1 lib/generators/rom.rb
rom-rails-1.0.0 lib/generators/rom.rb
rom-rails-1.0.0.rc1 lib/generators/rom.rb
rom-rails-1.0.0.beta1 lib/generators/rom.rb
rom-rails-0.9.0 lib/generators/rom.rb
rom-rails-0.9.0.beta1 lib/generators/rom.rb
rom-rails-0.8.0 lib/generators/rom.rb
rom-rails-0.7.0 lib/generators/rom.rb
rom-rails-0.6.0 lib/generators/rom.rb
rom-rails-0.6.0.rc1 lib/generators/rom.rb
rom-rails-0.6.0.beta1 lib/generators/rom.rb
rom-rails-0.5.0 lib/generators/rom.rb
rom-rails-0.5.0.rc1 lib/generators/rom.rb
rom-rails-0.5.0.beta1 lib/generators/rom.rb
rom-rails-0.4.0 lib/generators/rom.rb
rom-rails-0.3.3 lib/generators/rom.rb
rom-rails-0.3.2 lib/generators/rom.rb
rom-rails-0.3.1 lib/generators/rom.rb