Sha256: f4ca446bf95f0c410b2fb2c814dc2e5dba670431086df3613b73a42690a72811

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

require 'rails/generators'

module Cachers
  module Generators
    class CacherGenerator < Rails::Generators::NamedBase

      source_root File.expand_path('../templates', __FILE__)

      def create_cacher_file
        template 'cacher.rb', File.join('app/cachers', class_path, "#{file_name}_cacher.rb")
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cachers-5.1.2 lib/generators/cachers/cacher/cacher_generator.rb
cachers-5.1.1 lib/generators/cachers/cacher/cacher_generator.rb
cachers-4.1.0.2 lib/generators/cachers/cacher/cacher_generator.rb
cachers-4.1.0.1 lib/generators/cachers/cacher/cacher_generator.rb
cachers-4.1.0.0 lib/generators/cachers/cacher/cacher_generator.rb