Skip to content

Instantly share code, notes, and snippets.

View kirkconnell's full-sized avatar

Carlos Kirkconnell kirkconnell

  • Google
  • Mountain View, CA
View GitHub Profile
SELECT
overlapped_profiles.*
FROM
(
SELECT
profiles.id as profile_id,
site_id,
location_id,
profile_type_id
Scenario: Generic field sanitization
Given I am an advertising user "hi@example.net"/"password"
And I have the extended profile (law profile) on the site "Lawgical.com" (law)
And I am subscribed to the product "Big Funzy Site" on the profile (law profile) for $87 monthly
And the profile (law profile) has the following content fields defined:
| generic_field_number | field_name | description | default_text | output_format |
| 1 | Cat Food Name | | | html |
And I have signed in with "hi@example.net"/"password"
When I go to the products page
And I follow "Manage Profiles" within the site "Lawgical.com"
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 8b10472..3716fac 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
filter_parameter_logging :password, :password_confirmation
helper_method :current_user, :signed_in?, :lawgical_employees, :client_lawgical_url, :profile_errors?
- before_filter :authenticate, :set_time_zone
+ before_filter :authenticate, :set_time_zone, :check_change_password
actionmailer (2.3.5)
actionpack (2.3.5)
activemodel (3.0.1)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (3.0.1, 2.3.5)
autotest-fsevent (0.2.3)
autotest-growl (0.2.6)
autotest-rails (4.1.0)
builder (2.1.2)
gem list
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activemodel (3.0.1)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (3.0.1, 2.2.2)