lib/intercom-rails/import.rb in intercom-rails-0.2.23 vs lib/intercom-rails/import.rb in intercom-rails-0.2.24

- old
+ new

@@ -46,10 +46,10 @@ def supported_orm?(user_klass) active_record?(user_klass) || mongoid?(user_klass) end def assert_runnable - raise ImportError, "You can only import your users from your production environment" unless Rails.env.production? + raise ImportError, "You can only import your users from your production environment" unless (Rails.env.production? || Rails.env.staging?) raise ImportError, "We couldn't find your user class, please set one in config/initializers/intercom_rails.rb" unless user_klass.present? info "Found user class: #{user_klass}" raise ImportError, "Only ActiveRecord and Mongoid models are supported" unless supported_orm?(user_klass) raise ImportError, "Please add an Intercom API Key to config/initializers/intercom.rb" unless IntercomRails.config.api_key.present? info "Intercom API key found"