Skip to content

Instantly share code, notes, and snippets.

@sauy7
Created November 8, 2015 15:15
Show Gist options
  • Save sauy7/8b4155e6aca96e42cd18 to your computer and use it in GitHub Desktop.
Save sauy7/8b4155e6aca96e42cd18 to your computer and use it in GitHub Desktop.
Trailblazer: Uninitialized constant Thing::Update (contract.rb:5)
class Thing::Create::Contract < Reform::Form
...
end
class Thing::Update::Contract < Thing::Create::Contract
...
end
class Thing < ActiveRecord::Base
class Create < Trailblazer::Operation
include Model
model Thing, :create
require_dependency 'thing/contract'
self.contract_class = Contract
contract_class.model Thing
def process(params)
...
end
end
class Update < Create
action :update
def process(params)
...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment