Sha256: 05033749b5e626ff23af97e9b170fe8a4cf58eb18a6f05997a5045f712bafb52

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

require 'rails/generators'

class UrlStore::InitializerGenerator < Rails::Generators::Base

  def self.source_root
    @source_root ||= File.join(File.dirname(__FILE__), 'templates')
  end

  def create_initializer_file
    template 'initializer.erb', 'config/initializers/url_store.rb'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
url_store-0.4.0 lib/url_store/generators/initializer.rb
url_store-0.3.5 lib/url_store/generators/initializer.rb
url_store-0.3.4 lib/url_store/generators/initializer.rb
url_store-0.3.2 lib/url_store/generators/initializer.rb