static_blocks 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/static_blocks/snippet.rb +4 -0
- data/lib/static_blocks/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +5372 -0
- data/spec/dummy/log/test.log +739 -0
- data/spec/dummy/tmp/cache/assets/CB7/600/sprockets%2F4b986d4f51b24cf051570266a4f98f43 +0 -0
- data/spec/dummy/tmp/cache/assets/D7B/D10/sprockets%2F3eed3727d539009b38f783eeecc4c3d5 +0 -0
- data/spec/dummy/tmp/cache/assets/D7C/080/sprockets%2Fceb83d9f774902f31c556ceecd3a9409 +0 -0
- data/spec/dummy/tmp/cache/assets/D93/830/sprockets%2Fee17abae6f44f72c3404bd1f043a938b +0 -0
- data/spec/dummy/tmp/cache/assets/E05/270/sprockets%2Fa2ff35f73ab525c49a3e49fe7d0e6eeb +0 -0
- metadata +11 -1
@@ -85,7 +85,11 @@ module StaticBlocks
|
|
85
85
|
(?, ?, ?, ?, ?)", static_block.id, row['locale'], row['content'], row['created_at'], row['updated_at']]
|
86
86
|
raw_sql = sanitize_sql_array(sql_array)
|
87
87
|
end
|
88
|
+
|
88
89
|
ActiveRecord::Base.connection.execute(raw_sql)
|
90
|
+
|
91
|
+
# manually clear the cache for that snippet
|
92
|
+
Rails.cache.delete("snippet::#{row['locale']}::#{row['title']}")
|
89
93
|
end
|
90
94
|
end
|
91
95
|
end
|
Binary file
|