Sha256: 1027b575320986e35be246ad86cb367a618bc90a92cb19416762fbc21e4a7749

Contents?: true

Size: 533 Bytes

Versions: 30

Compression:

Stored size: 533 Bytes

Contents

module Administrador
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc 'Generates the initializer'

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

      def generate_initializer
        template 'initializer.rb', 'config/initializers/administador.rb'
      end

      def generate_routes
        inject_into_file 'config/routes.rb', before: "\nend" do
          File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
administrador-0.0.32.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.31.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.30.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.29.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.28.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.27.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.26.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.25.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.24.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.22.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.21.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.20.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.18.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.17.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.16.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.15.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.14.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.13.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.12.pre lib/generators/administrador/install/install_generator.rb
administrador-0.0.11.pre lib/generators/administrador/install/install_generator.rb