aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-01-10 12:12:04 -0500
committerGeorge Claghorn <george@basecamp.com>2018-01-10 12:12:04 -0500
commitd4cdd4a05f9874127f5052eb7909c7d921ad046e (patch)
tree8e8ff3f111f37e770a9d6da4548dab14a0a32135 /activestorage/lib
parent5a593486f5c8a73f2be200a409b0a14dff51790c (diff)
downloadrails-d4cdd4a05f9874127f5052eb7909c7d921ad046e.tar.gz
rails-d4cdd4a05f9874127f5052eb7909c7d921ad046e.tar.bz2
rails-d4cdd4a05f9874127f5052eb7909c7d921ad046e.zip
Extract Analyzable and Representable concerns
Diffstat (limited to 'activestorage/lib')
-rw-r--r--activestorage/lib/active_storage.rb2
-rw-r--r--activestorage/lib/active_storage/errors.rb5
2 files changed, 7 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage.rb b/activestorage/lib/active_storage.rb
index 3bd8ef664f..02442cfbe1 100644
--- a/activestorage/lib/active_storage.rb
+++ b/activestorage/lib/active_storage.rb
@@ -26,7 +26,9 @@
require "active_record"
require "active_support"
require "active_support/rails"
+
require "active_storage/version"
+require "active_storage/errors"
module ActiveStorage
extend ActiveSupport::Autoload
diff --git a/activestorage/lib/active_storage/errors.rb b/activestorage/lib/active_storage/errors.rb
new file mode 100644
index 0000000000..db2c7f6bf5
--- /dev/null
+++ b/activestorage/lib/active_storage/errors.rb
@@ -0,0 +1,5 @@
+module ActiveStorage
+ class InvariableError < StandardError; end
+ class UnpreviewableError < StandardError; end
+ class UnrepresentableError < StandardError; end
+end