Sha256: ef946c907ed1ad60120fc0e89e1740969c356656d38cf27954038fdba29568fb

Contents?: true

Size: 507 Bytes

Versions: 16

Compression:

Stored size: 507 Bytes

Contents

require 'landable'
require 'rails/generators'

module Landable
  module Generators
    class Base < ::Rails::Generators::NamedBase
      class << self
        def namespace
          "landable:#{generator_name}"
        end

        def source_root
          @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), "landable", generator_name, "templates"))
        end

        def target_root
          File.expand_path(Rails.root.join("app", "assets"))
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 lib/generators/landable/landable_generator.rb
landable-1.12.3 lib/generators/landable/landable_generator.rb
landable-1.12.2 lib/generators/landable/landable_generator.rb
landable-1.12.1 lib/generators/landable/landable_generator.rb
landable-1.11.1 lib/generators/landable/landable_generator.rb
landable-1.11.0 lib/generators/landable/landable_generator.rb
landable-1.10.0.rc2 lib/generators/landable/landable_generator.rb
landable-1.10.0.rc1 lib/generators/landable/landable_generator.rb
landable-1.9.2 lib/generators/landable/landable_generator.rb
landable-1.9.1 lib/generators/landable/landable_generator.rb
landable-1.9.0 lib/generators/landable/landable_generator.rb
landable-1.9.0.rc2 lib/generators/landable/landable_generator.rb
landable-1.9.0.rc1 lib/generators/landable/landable_generator.rb
landable-1.8.0 lib/generators/landable/landable_generator.rb
landable-1.7.1.rc1 lib/generators/landable/landable_generator.rb
landable-1.7.0 lib/generators/landable/landable_generator.rb