Sha256: cccf4f0f3ab6cd22b1fed1cd617460c65b639fd4a0a4775679b80ad0bc423403
Contents?: true
Size: 413 Bytes
Versions: 5
Compression:
Stored size: 413 Bytes
Contents
class Auth::Generators::RouteGenerator < Rails::Generator::NamedBase attr_reader :model def initialize(model, options = {}) @model = model args = [ model.name ] super(args, options) end def manifest record do |m| m.route_resources plural_name end end def spec @spec ||= Rails::Generator::Spec.new("route", File.join(Auth.path, "auth/generators"), nil) end end
Version data entries
5 entries across 5 versions & 1 rubygems