Sha256: 421d339148309fecb55355aecb96df37398bf298cfcc4e99b0d95e19222cc812

Contents?: true

Size: 219 Bytes

Versions: 5

Compression:

Stored size: 219 Bytes

Contents

require 'rails/generators'

module Ouvrages
  module Generators
    class RoutesGenerator < ::Rails::Generators::NamedBase
      def add_route
        route "resources :#{plural_table_name}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ouvrages_scaffold-0.2.0 lib/generators/ouvrages/routes/routes_generator.rb
ouvrages_scaffold-0.1.3 lib/generators/ouvrages/routes/routes_generator.rb
ouvrages_scaffold-0.1.2 lib/generators/ouvrages/routes/routes_generator.rb
ouvrages_scaffold-0.1.1 lib/generators/ouvrages/routes/routes_generator.rb
ouvrages_scaffold-0.1.0 lib/generators/ouvrages/routes/routes_generator.rb