Sha256: 3b7ed435751f482d9ca195299d380630939840405e4c0572aee8a74169960f5c

Contents?: true

Size: 325 Bytes

Versions: 30

Compression:

Stored size: 325 Bytes

Contents

require 'rails/generators'
require 'rails/generators/named_base'

module NinjaModel
  module Generators
    class NamedBase < Rails::Generators::NamedBase
      def self.source_root
        @ninja_model_source_root ||= File.join(File.dirname(__FILE__), 'ninja_model', generator_name, 'templates')
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ninja-model-1.0.5 lib/generators/ninja_model.rb
ninja-model-1.0.4 lib/generators/ninja_model.rb
ninja-model-1.0.3 lib/generators/ninja_model.rb
ninja-model-1.0.2 lib/generators/ninja_model.rb
ninja-model-1.0.1 lib/generators/ninja_model.rb
ninja-model-1.0.0 lib/generators/ninja_model.rb
ninja-model-0.9.6 lib/generators/ninja_model.rb
ninja-model-0.9.5 lib/generators/ninja_model.rb
ninja-model-0.9.4 lib/generators/ninja_model.rb
ninja-model-0.9.3 lib/generators/ninja_model.rb
ninja-model-0.9.2 lib/generators/ninja_model.rb
ninja-model-0.9.1 lib/generators/ninja_model.rb
ninja-model-0.9.0 lib/generators/ninja_model.rb
ninja-model-0.8.1 lib/generators/ninja_model.rb
ninja-model-0.8.0 lib/generators/ninja_model.rb
ninja-model-0.7.3 lib/generators/ninja_model.rb
ninja-model-0.7.2 lib/generators/ninja_model.rb
ninja-model-0.7.1 lib/generators/ninja_model.rb
ninja-model-0.7.0 lib/generators/ninja_model.rb
ninja-model-0.6.2 lib/generators/ninja_model.rb