rails_sql_views 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,10 +7,16 @@ module ActiveRecord
|
|
7
7
|
cattr_accessor :ignore_views
|
8
8
|
@@ignore_views = []
|
9
9
|
|
10
|
+
def trailer_with_views(stream)
|
11
|
+
# do nothing...we'll call this later
|
12
|
+
end
|
13
|
+
alias_method_chain :trailer, :views
|
14
|
+
|
10
15
|
# Add views to the end of the dump stream
|
11
16
|
def dump_with_views(stream)
|
12
17
|
dump_without_views(stream)
|
13
18
|
views(stream)
|
19
|
+
trailer_without_views(stream)
|
14
20
|
stream
|
15
21
|
end
|
16
22
|
alias_method_chain :dump, :views
|