Sha256: 186b87d493361d28936be9ba253ffb1c265d82d242a0c2448664035e7e33b6d6

Contents?: true

Size: 631 Bytes

Versions: 6

Compression:

Stored size: 631 Bytes

Contents

require 'sequel'

module Sequel
  module Plugins
    # Fix the naked call to do the following:
    # - remove the row_proc
    # - remove the model method, or make it return nil
    # - fix the destroy method. Not sure what this means right now.
    module Naked
      def self.configure(model, options = {})
        model.instance_eval do
          # store model-related stuff here
        end
      end
      
      module ClassMethods
        def inherited(subclass)
          super
        end
        
        def naked( *args )
          
        end
      end
      
      module InstanceMethods
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
clevic-0.13.0.b9 lib/clevic/sequel_naked.rb
clevic-0.13.0.b6 lib/clevic/sequel_naked.rb
clevic-0.13.0.b5 lib/clevic/sequel_naked.rb
clevic-0.13.0.b3 lib/clevic/sequel_naked.rb
clevic-0.13.0.b2 lib/clevic/sequel_naked.rb
clevic-0.13.0.b1 lib/clevic/sequel_naked.rb