Sha256: 9ad794dc912d174cfa0c9e60d75c55ffc7c97cde4d01dff4f45ac8771a547eb4
Contents?: true
Size: 730 Bytes
Versions: 13
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true <% module_namespacing do -%> class <%= name.split('/').last.to_s.camelcase %> include Formify::Form # attr_accessor :foo # delegate_accessor :bar # :baz, # to: :fixed_attr # validates_presence_of :foo # :bar, # :baz # validate :validate_ # def initialize(attributes = {}) # raise NotImplementedError # # self.fixed_attr = attributes[:fixed_attr] # super(attributes) # end def save raise NotImplementedError with_advisory_lock_transaction(:foo) do validate_or_fail .and_then { method } .and_then { success(object) } end end end <% end -%>
Version data entries
13 entries across 13 versions & 1 rubygems