Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Require active_support explicitly #6

Merged
merged 1 commit into from over 1 year ago

2 participants

jamesBrennan Brian Jones
jamesBrennan

I was getting an "uninitialized constant SafeAttributes::ActiveSupport" error when attempting to use safe_attributes outside of a rails project. Adding require 'active_support' fixes the issue.

I did not write a test because I'm unsure of how to effectively recreate the issue with a spec.

Brian Jones bjones merged commit a6777c0 into from October 09, 2012
Brian Jones bjones closed this October 09, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 27, 2012
jamesBrennan Require active_support explicitly a6777c0
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/safe_attributes.rb
2  lib/safe_attributes.rb
... ...
@@ -1,3 +1,5 @@
  1
+require 'active_support'
  2
+
1 3
 module SafeAttributes
2 4
   extend ActiveSupport::Concern
3 5
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.