Lighthouse 5478 - Postgres and Sqlite3 no longer able to map to database views #379

Closed
dark-panda opened this Issue May 3, 2011 · 2 comments

Comments

Projects
None yet
4 participants
Contributor

dark-panda commented May 3, 2011

https://rails.lighthouseapp.com/projects/8994/tickets/5478/

It doesn't look like this issue was ever actually resolved, as the patch supplied in the comments was never actually applied to the source tree. For instance,

class MyTable < ActiveRecord::Base
   set_table_name 'my_view'
end

MyTable.table_exists? # => false

This is when using PostgreSQL as a backend. I can't find any mention of pg_views anywhere in the source, so I don't think that the patch was ever applied properly.

georgeclaghorn reopened this May 4, 2011

@tomstuart tomstuart pushed a commit to econsultancy/rails that referenced this issue May 17, 2011

@dtrasbo @josevalim dtrasbo + josevalim Remove ActiveRecord::Base#class_name [#379 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
735a4db
Contributor

dmathieu commented Jun 3, 2011

I've added a test case for this in #1469.
The test does not fail. The issue then appears to have been solved.

Contributor

dmathieu commented Jun 29, 2011

After more reflection, I don't think this is really an issue. ActiveRecord manages only tables anyway, not views.
If you need views management in your app, use or make a gem which does that.

@svenfuchs svenfuchs pushed a commit to svenfuchs/rails that referenced this issue Jul 2, 2011

@dtrasbo @josevalim dtrasbo + josevalim Deprecate ActiveRecord::Base#class_name [#379 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
ac42e69

jeremy closed this Oct 9, 2011

@hisas hisas pushed a commit to hisas/rails that referenced this issue May 9, 2017

@ConradIrwin ConradIrwin Split strictly on MIME boundary lines [Fixes #379]
Some mail generators ignore RFC 2046's "Boundary delimeters must not
appear within the encapsulated material" by using MIME boundaries for
inner parts that contain the MIME boundaries for outer parts.

To parse these emails as the author intended it is necessary to split
encapsulated content only on boundary delimeters that are on their own
line, instead of those that appear with suffixed content.
988f93e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment