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-0.6.1 lib/generators/ninja_model.rb
ninja-model-0.6.0 lib/generators/ninja_model.rb
ninja-model-0.5.7 lib/generators/ninja_model.rb
ninja-model-0.5.6 lib/generators/ninja_model.rb
ninja-model-0.5.5 lib/generators/ninja_model.rb
ninja-model-0.5.4 lib/generators/ninja_model.rb
ninja-model-0.5.3 lib/generators/ninja_model.rb
ninja-model-0.5.2 lib/generators/ninja_model.rb
ninja-model-0.5.1 lib/generators/ninja_model.rb
ninja-model-0.4.2 lib/generators/ninja_model.rb