Squashed remove_before_hooks

commit 60ac83e5020ecd984100f7124e4267ca78579cc5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 10:52:49 2014 +0100

    Use rack test for recreating previews

commit de8cbad226edcdd569fd8ab59833d60f6db065b0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 10:49:55 2014 +0100

    Fix recreate images

commit e60469326b07df491dd10599858d494e4bf7567b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 10:31:55 2014 +0100

    fix factory

commit 7fb43753a4f96ed2506170f1fa7b7bfb96ebc1ed
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:52:28 2014 +0100

    Fixed step definition that creates a media_entry with images and previews

commit 92683146485d6fd4a7c4f41b52d2db023882dae5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:43:15 2014 +0100

    Fix last rspec

commit 692b2ad5adfb4a81fbe648a0bbaefc6b86a015f7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:41:31 2014 +0100

    Fix controller media_resources/index spec

commit 7bc8ce88cfb55d7c7ec757cc47bec45ed8ccc701
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:39:10 2014 +0100

    Fix download_controller_spec

commit 5cea92813ee88cac00debed3bfd8e253c9292924
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:37:52 2014 +0100

    Fixed spec/controllers/media_sets/show_spec.rb

commit 2746710cce80c311af1121748916e12700ba178f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:35:29 2014 +0100

    Changed media_entry factory to include media_file with real_image

commit dbb80d81a9011494e325ffb31c8d59d6117a42d5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 09:22:15 2014 +0100

    Fixed media_entry_incomplete_spec

commit 3d0adf3bf8037e28418e99524e84d1f95fe565b6
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 18 08:50:50 2014 +0100

    Saver way to get properties from the uploaded file

commit 28fe005eef9d7ae1bb0937dce4c1c4b6c7d0568d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 15:10:46 2014 +0100

    Clean import

commit 1af8c701d8a221e24112c951df35fd00edf66869
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 15:04:36 2014 +0100

    Refactored import#upload

commit 905f22baede8f2dea823602bd069200c1c0ee240
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 14:44:41 2014 +0100

    Effectively extracting and setting data during import

commit dc76c575f4fa3c59469353e0e0ba16fed5ac421b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 14:06:20 2014 +0100

    Actually create previews during import

commit 075684ff4912987d7566fb1e5f61415d1dd5a5c5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 14:04:14 2014 +0100

    Refactored creation of previews

commit 73982243404b73764a6d6b59076aa9d08961aa07
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 13:52:10 2014 +0100

    Rather use scope now with rails4

commit 1fecead685160df03313516f0e1e36f44ec760ba
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 13:47:18 2014 +0100

    Media file cleanup

commit a289c92e3f4a7e860aeb53fba22270e51a559d9a
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 13:34:59 2014 +0100

    Moving file and fixing some issues

commit 7fe50f5a7b7989e6eec433d489528c63766f3d8c
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 09:28:48 2014 +0100

    Refactored and distangled media_file

commit cf45ee94aae9ea687845a8a0e9460d9ed96ba46d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Mar 17 08:34:43 2014 +0100

    Creating media-file and media-entry during upload

commit b6534eada9ae151f7648fe3abf5849a27e5945a8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 11:08:17 2014 +0100

    Adding previews with images to media_file image factory

commit f6726f2ff9b41d5c47c83e0f0092edd1bd70781d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 10:21:52 2014 +0100

    Finished basic factories and fixed import/zencoder_job controller spec

commit ddce0d28ecf65c24debc8462ebe9383cd3f9a116
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 09:36:48 2014 +0100

    Create factory for media_file_for_image ...

commit a985dd0d1c71ed8f650c58d19f03b58e6482885e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 09:25:55 2014 +0100

    ImportController fix syntax

commit 3130fbc75e7da20abe375b94ce4ac9d9cdad6bdd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 09:19:11 2014 +0100

    ImportController: wrap creation in transaction

commit 15baa227f90a76f5053731674a8aa94f0ba2920a
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 09:16:34 2014 +0100

    Minor simplification

commit 7a2287b215c577b6b019af33b5a7801977fead67
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 14 09:09:58 2014 +0100

    Some adjustments in import controller

commit 7d45dde2cb2554d5e4bd486dc680f6c7c5963c98
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 15:17:19 2014 +0100

    Refactored media_file factory

commit b7919b1fd4e4434b1d806be4ff3e20be5d5f57df
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 14:05:51 2014 +0100

    Fixed syntax error in import controller

commit 76fa30b92e56e1bd3a8c8d0e65ffb442eda8c613
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 13:33:09 2014 +0100

    Removed more hooks

commit be877229d6b48f9c4e8fae389292c15bcadc6222
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 13:05:43 2014 +0100

    Removed before hook from media_entry_incomplete

commit a7f5eed7e53809f05e2b33bc873ff8686e0037be
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 10:53:17 2014 +0100

    Try to pass file properties directly

commit 1350137e224e246e37e7024f457809927ef5892f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 10:23:34 2014 +0100

    before_create only sets if not already set

commit a591a137f289963e6370a88d8a5e98f64222ced3
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Mar 13 10:15:34 2014 +0100

    Removed zip import

Fix set proper basename for file during import#upload