Sha256: 0f311503d91b9c795bd2d3888c3c61c083da260ba4d732d19c31f1aea90698d1

Contents?: true

Size: 341 Bytes

Versions: 79

Compression:

Stored size: 341 Bytes

Contents

class Jets::Router::MethodCreator
  class Show < Code
    def meth_name
      path_items = @path.to_s.split('/')
      if method_name_leaf && path_items.size != 2
        nil # fallback: do not define url method
      else  # comes from resources
        join(singularize(full_as), singularize(method_name_leaf))
      end
    end
  end
end

Version data entries

79 entries across 79 versions & 2 rubygems

Version Path
jets-4.0.12 lib/jets/router/method_creator/show.rb
jets-4.0.11 lib/jets/router/method_creator/show.rb
jets-4.0.10 lib/jets/router/method_creator/show.rb
jets-4.0.9 lib/jets/router/method_creator/show.rb
jets-4.0.8 lib/jets/router/method_creator/show.rb
jets-4.0.7 lib/jets/router/method_creator/show.rb
jets-4.0.6 lib/jets/router/method_creator/show.rb
jets-4.0.5 lib/jets/router/method_creator/show.rb
jets-4.0.4 lib/jets/router/method_creator/show.rb
jets-4.0.3 lib/jets/router/method_creator/show.rb
jets-4.0.2 lib/jets/router/method_creator/show.rb
jets-4.0.1 lib/jets/router/method_creator/show.rb
jets-4.0.0 lib/jets/router/method_creator/show.rb
jets-3.2.2 lib/jets/router/method_creator/show.rb
jets-3.2.1 lib/jets/router/method_creator/show.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/router/method_creator/show.rb
jets-3.2.0 lib/jets/router/method_creator/show.rb
jets-3.1.5 lib/jets/router/method_creator/show.rb
jets-3.1.4 lib/jets/router/method_creator/show.rb
jets-3.1.3 lib/jets/router/method_creator/show.rb