Sha256: 13566816e33aae96e7f8bdb4822e16c476ff0458ca373e92d675f39f556af2fb

Contents?: true

Size: 333 Bytes

Versions: 21

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

module Rails
  module Generators
    class FacadeGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      def copy_facade_file
        template "facade.tt", File.join("app/facades", class_path, "#{file_name}_facade.rb")
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
lightrails-0.2.7 lib/generators/facade_generator.rb
lightrails-0.2.6 lib/generators/facade_generator.rb
lightrails-0.2.5 lib/generators/facade_generator.rb
lightrails-0.2.4 lib/generators/facade_generator.rb
lightrails-0.2.3 lib/generators/facade_generator.rb
lightrails-0.2.2 lib/generators/facade_generator.rb
lightrails-0.2.1 lib/generators/facade_generator.rb
lightrails-0.2.0 lib/generators/facade_generator.rb
lightrails-0.1.0.1 lib/generators/facade_generator.rb
lightrails-0.1.0 lib/generators/facade_generator.rb
lightrails-0.0.17.3 lib/generators/facade_generator.rb
lightrails-0.0.17.2 lib/generators/facade_generator.rb
lightrails-0.0.17.1 lib/generators/facade_generator.rb
lightrails-0.0.17 lib/generators/facade_generator.rb
lightrails-0.0.16 lib/generators/facade_generator.rb
lightrails-0.0.15 lib/generators/facade_generator.rb
lightrails-0.0.14 lib/generators/facade_generator.rb
lightrails-0.0.13 lib/generators/facade_generator.rb
lightrails-0.0.12 lib/generators/facade_generator.rb
lightrails-0.0.11 lib/generators/facade_generator.rb