Sha256: 008077d1eb51141e7fa0eb7cc63e31dbd61c9ecfc7725a404dc676dbfc6a0e9e

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

class SampleModel
  include ActiveModel::Validations
  include ActiveModel::Conversion
  extend  ActiveModel::Naming

  attr_accessor :password

  validates :password, :confirmation => true

  # Required to use this model in a form builder
  def persisted?
    false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tiny-rails-0.0.1 templates/models.rb