Sha256: 30b7c1685c7fecaf09b76e91f63530196ae28fc9df81ed19b94b832e42f9c061

Contents?: true

Size: 333 Bytes

Versions: 28

Compression:

Stored size: 333 Bytes

Contents

# add this in here until we can use a version of Active Fedora that contains this ability
module Sufia
  module GenericFile
    module ReloadOnSave

      attr_writer :reload_on_save

      def reload_on_save?
        !!@reload_on_save
      end

      def refresh
        self.reload if reload_on_save?
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
sufia-models-4.0.0.beta3 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.0.beta3 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.0.beta2 sufia-models/lib/sufia/models/generic_file/reload_on_save.rb
sufia-models-4.0.0.beta2 lib/sufia/models/generic_file/reload_on_save.rb
sufia-4.0.0.beta1 sufia-models/lib/sufia/models/generic_file/reload_on_save.rb
sufia-models-4.0.0.beta1 lib/sufia/models/generic_file/reload_on_save.rb
sufia-models-3.7.2 lib/sufia/models/generic_file/reload_on_save.rb
sufia-3.7.2 sufia-models/lib/sufia/models/generic_file/reload_on_save.rb