lib/rails/graphql/source.rb
# Build all the objects associated with this source
Build all the objects associated with this source
Build all the objects associated with this source
def build!
            return if built?
            raise DefinitionError, <<~MSG.squish if abstract
              Abstract source #{name} cannot be built.
            MSG
            @built = true
            catch(:done) do
              hook_names.each do |hook_name|
                break if hook_name === :finish
                catch(:skip) { send("run_#{hook_name}_hooks") }
              end
            end
            catch(:skip) { send(:run_finish_hooks) } if respond_to?(:run_finish_hooks, true)
          end
def build! return if built? raise DefinitionError , <<~MSG . squish if abstract 
              Abstract source  #{ name }  cannot be built.
             MSG @built = true catch ( :done ) do hook_names . each do | hook_name | break if hook_name === :finish catch ( :skip ) { send ( "run_#{hook_name}_hooks" ) } end end catch ( :skip ) { send ( :run_finish_hooks ) } if respond_to? ( :run_finish_hooks , true ) end
Build all the objects associated with this source
Build all the objects associated with this source