Sha256: 87b8df7c70cd8075829449e35736824325c2744b1f387edc69f95dc33ebf7f3d
Contents?: true
Size: 501 Bytes
Versions: 4
Compression:
Stored size: 501 Bytes
Contents
class Backend::SnippetTranslationForm < Udongo::Form attr_reader :snippet, :translation attribute :title, String attribute :content, String delegate :id, to: :snippet def initialize(snippet, translation) @snippet = snippet @translation = translation init_attribute_values(translation) end def self.model_name Snippet.model_name end def persisted? true end private def save_object init_object_values(@translation) @translation.save end end
Version data entries
4 entries across 4 versions & 1 rubygems