Sha256: 8b70692539a4ee978ad5169fb1f305054faefb3a9d17bfdc41b95d3e40fe8da7
Contents?: true
Size: 536 Bytes
Versions: 87
Compression:
Stored size: 536 Bytes
Contents
module Jets::Router::Resources class Options < Base def build(action) controller = @options[:singular_resource] ? @name.to_s.pluralize : @name options = @options.merge(to: "#{controller}##{action}") # important to create a copy of the options # remove special options from getting to create_route. For some reason .slice! doesnt work options.delete(:only) options.delete(:except) options[:from_scope] = true # flag to drop the prefix later in Route#compute_path options end end end
Version data entries
87 entries across 87 versions & 2 rubygems