Sha256: 5a3ace23aa51ed25007f9a75fba4f6ff7b8cad1aa63a91ae8757eee17b2e2805

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

module ActsAsSaveable
  module Extenders

    module Saveable

      def saveable?
        false
      end

      def acts_as_saveable
        require 'acts_as_saveable/saveable'
        include ActsAsSaveable::Saveable

        class_eval do
          def self.saveable?
            true
          end
        end

      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_saveable-0.10.1 lib/acts_as_saveable/extenders/saveable.rb