class TestCustomUrlHelpers::Model

Attributes

id[R]

Public Class Methods

new(id = nil) click to toggle source
# File actionpack/test/dispatch/routing/custom_url_helpers_test.rb, line 33
def initialize(id = nil)
  @id = id
end

Public Instance Methods

model_name() click to toggle source
# File actionpack/test/dispatch/routing/custom_url_helpers_test.rb, line 38
def model_name
  @_model_name ||= ActiveModel::Name.new(self.class, nil, self.class.name.demodulize)
end
persisted?() click to toggle source
# File actionpack/test/dispatch/routing/custom_url_helpers_test.rb, line 42
def persisted?
  false
end