Sha256: e208443564cf452e806c460c488ea373f2e554e1deb65a83de3b8cc61656dd06
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
module Ecm module Sliders module Backend 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/ecm_sliders_backend.rb' end def generate_routes route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source')) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_sliders2_backend-0.0.4 | lib/generators/ecm/sliders/backend/install/install_generator.rb |
ecm_sliders2_backend-0.0.3 | lib/generators/ecm/sliders/backend/install/install_generator.rb |