rails_sql_views 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|