Sha256: 023e2ad08bb41e2247d6deba606d1c5f02704a7fa8be4383ceca9b1727e0314b
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
class Entry < ActiveRecord::Base validates :slim, slim: { allow_blank: true } validates :slim_no_options, slim: { to: :html, allow_blank: true } validates :slim_proc, slim: { options: {pretty: false}, to: ->(record, result) { record.html = result }, allow_blank: true } validates :slim_attribute, slim: { options: {pretty: false}, to: :html, allow_blank: true } validates :slim_scope, slim: { options: {pretty: false}, to: :html, scope: :record, allow_blank: true } def initialize(*) super @local_value = 'local value' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slim_validation-0.0.2 | spec/dummy/app/models/entry.rb |