Sha256: 3ad6b4e32a0b24fe5cbe2ef4475a65cb0b91d7eafd2a51e3b9cff7827704a2fe

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

require 'rails/generators'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-cancan-bootstrap-scaffold-0.0.1 lib/generators/cancan_bootstrap/routes/routes_generator.rb