class TestGenerationPrefix::Post

Public Class Methods

model_name() click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 15
def self.model_name
  klass = "Post".dup
  def klass.name; self end

  ActiveModel::Name.new(klass)
end

Public Instance Methods

persisted?() click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 23
def persisted?; true; end
to_model() click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 22
def to_model; self; end
to_param() click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 11
def to_param
  "1"
end