Sha256: ef903a5a6c2c144af2c41be7e17c9cebef161c7e08d1e1c8aa44fc5ac0bc10c5
Contents?: true
Size: 420 Bytes
Versions: 4
Compression:
Stored size: 420 Bytes
Contents
class Backend::PageForm < Udongo::Form attr_reader :page attribute :parent_id, Integer attribute :description, String attribute :visible, Axiom::Types::Boolean validates :description, presence: true delegate :id, to: :page def self.model_name Page.model_name end def persisted? !@page.new_record? end private def save_object init_object_values(@page) @page.save! end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
udongo-2.0.4 | app/forms/backend/page_form.rb |
udongo-2.0.3 | app/forms/backend/page_form.rb |
udongo-2.0.2 | app/forms/backend/page_form.rb |
udongo-2.0.1 | app/forms/backend/page_form.rb |