spud_inquiries 1.0.0.rc1 → 1.0.0.rc1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spud_inquiry_form.rb +2 -1
- data/lib/spud_inquiries/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b17d2566744e81c87b85ed0927b6babddae6e5
|
4
|
+
data.tar.gz: 3e584c4d8e88c34762cd6a20126dfc0a4060a942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676e508c45c1d3ef7a2e749e18cae3ee30a49ccb149dbb105f7d88a93dcf5271b2a8be3f63676f0383a62b87886b7e795b29b91beeeb6d62e1671da18e8fa7bf
|
7
|
+
data.tar.gz: 6ecacfbbf7e5b3ab0f37652432c7a06327d96e6743a8540a0f52d4dcaf410a0a6c5d0f486b7b5d4028b99134b7d3337bff0f87b08a86e188970365c19f680a07
|
@@ -7,8 +7,9 @@ class SpudInquiryForm < ActiveRecord::Base
|
|
7
7
|
validates :name,:presence => true,:uniqueness => true
|
8
8
|
validates :url_name,:presence => true, :uniqueness => true
|
9
9
|
before_validation :generate_url_name
|
10
|
-
after_save
|
10
|
+
after_save :expire_cache
|
11
11
|
after_destroy :expire_cache
|
12
|
+
after_touch :expire_cache
|
12
13
|
# attr_accessible :name,:url_name,:recipients,:content,:subject,:spud_inquiry_form_fields_attributes, :created_at, :updated_at, :thank_you_content, :submit_title
|
13
14
|
|
14
15
|
def generate_url_name
|