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-5.0.0 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-5.0.0 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-5.0.0.rc1 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-5.0.0.rc1 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.3.1 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.3.1 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.2.0 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.2.0 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.1.0 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.1.0 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.1 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.0.1 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.0.0 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.0 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.0.rc2 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.0.0.rc2 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.0.rc1 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.0.0.rc1 app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-4.0.0.beta4 sufia-models/app/models/concerns/sufia/generic_file/reload_on_save.rb
sufia-models-4.0.0.beta4 app/models/concerns/sufia/generic_file/reload_on_save.rb