similar to: Arbitrary "Columns" for ActiveRecord

Displaying 20 results from an estimated 100 matches similar to: "Arbitrary "Columns" for ActiveRecord"

2006 Jan 26
2
Easy way to add properties to a model?
Hi, I have a model (let''s say User) and I would like to add any number of user-defined-settings to this Model. I created a UserSetting Model with user_id, key and value. I connected them with has_many. I know how to access these properties from a user but I would like some methods like user.hasProperty? / user.getProperty ... I think I know how to write these methods/finders myself but
2006 Jul 06
4
Need advice on code-like columns
Hello! I''m trying to move to rails from traditional web app. As Rails has some conventions about table schema, I met some obstacles. Questions. 1. This is a sort of general question. Do you make a code table for things like the following? Activity Status Codes 01001: Open 01002: Pending 01003: Delayed 01004: Cancelled 01005: Closed (The first 2 digits are code category.) Would you
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
On Mon, Feb 8, 2016 at 12:45 PM, Hans Wennborg <hans at chromium.org> wrote: > Chris Bieneman is probably your best bet, and maybe also Dan Liew. > Hans, My current, and hopefully final, revision of the proposed patch is simplified and reworked to solve the problem entirely from cmake without touching the the llvm-build python scripts. Basically, the new fix for avoiding the
2011 Aug 11
0
[PATCH] map nics-> bridges correctly in network pages, when cancelling nic configuration return to network page
rhbz#720568 Signed-off-by: Joey Boggs <jboggs at redhat.com> --- scripts/ovirt-config-setup.py | 41 +++++++++++++++++------------------------ 1 files changed, 17 insertions(+), 24 deletions(-) diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py index 4bd46d5..bddf6aa 100755 --- a/scripts/ovirt-config-setup.py +++ b/scripts/ovirt-config-setup.py @@ -774,6 +774,7
2009 Jun 20
0
problem with simlpe captcha
Hi simple captcha works fine on my app. recently I changed my hosting provider and moved the app to new server. Here its not working and throwing error ActionView::TemplateError (undefined method `find_by_key'' for SimpleCaptchaData():Class) on line #246 of home/register.rhtml: 243: </td> 244: <td align=left> 245:
2006 Oct 10
3
Dynamic fields and inheritance
I have a model that allows subclasses to dynamically define fields. The following code is a short test case that illustrates the problem I''m having: class Product < ActiveRecord::Base acts_as_ferret :fields => [:name] serialize :data def self.data_properties (*properties) properties.each do |property| define_method(property) {self.get_property(property)}
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
Hans, I have posted a complete patch for solving the linkage issues with LLVM_LINK_LLVM_DYLIB on Phabricator at http://reviews.llvm.org/D16945. The bulk of the fix the simple changes of... Index: cmake/modules/AddLLVM.cmake =================================================================== --- cmake/modules/AddLLVM.cmake (revision 259743) +++ cmake/modules/AddLLVM.cmake (working copy) @@
2014 Aug 23
3
[LLVMdev] [3.5 Release] Release Candidate 3 Now Available - CMake build error
> Run it through its phases and report any bugs you find! [ 1495s] CMake Warning (dev) at projects/dragonegg/CMakeLists.txt:34 (get_target_property): [ 1495s] Policy CMP0026 is not set: Disallow use of the LOCATION target property. [ 1495s] Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy [ 1495s] command to set the policy and suppress this warning. [
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
configure.ac | 1 vivified/Makefile.am | 2 vivified/core/vivi_application.c | 7 + vivified/dock/.gitignore | 12 ++ vivified/dock/Makefile.am | 15 +++ vivified/dock/vivi_docker.c | 93 +++++++++++++++++++ vivified/dock/vivi_docker.h | 55 +++++++++++ vivified/dock/vivi_docklet.c | 172
2009 Aug 12
4
TV-out modesetting DDX patches
[PATCH 1/3] kms: Don't hardcode the output properties [PATCH 2/3] kms: Implement output->get_property when RandR1.3 is available. [PATCH 3/3] kms: Add TV-out support src/drmmode_display.c | 403 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 261 insertions(+), 142 deletions(-)
2014 Jul 18
2
[LLVMdev] Fixing LLVM's CMake interface before LLVM3.5 release
>> I am happy to start writing a patch for the documentation > > Thanks. Please Cc me for review. Will do. >> # LLVM_BUILD_* values available only from LLVM build tree. > > Those were created to simplify building Clang locally against a > LLVM build tree. Clang needs the LLVM source and build trees too, > so this gives it that information. No information is
2010 Sep 12
11
Rails 3: finding a record by name in multilingual app
Hello, I upgraded my application from Rails 2 to Rails 3 and ran into a problem. In rails 2 I could use the english name of the record to find it like: Page.find_by_name("Welcome") even though the user chose German as the language (which of course showed the German welcome page. Eversince I switched to Rails 3 (default_locale still :en) I can''t find anything by giving the
2011 Jul 08
0
Wine release 1.3.24
The Wine development release 1.3.24 is now available. What's new in this release (see below for details): - Various DirectInput improvements. - Support for line breaking in Uniscribe. - More UI elements in builtin Shell Explorer. - Some more D3DX9 functions. - Improved support for shell known folders. - Various bug fixes. The source is available from the following locations:
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
libswfdec/swfdec_as_context.c | 14 +- libswfdec/swfdec_keys.h | 2 libswfdec/swfdec_movie.c | 70 ++++++++++- libswfdec/swfdec_movie.h | 2 libswfdec/swfdec_sprite_movie_as.c | 12 -- player/swfdebug.c | 6 - player/swfdec_debug_movies.c | 221 +++++++++++++++++++------------------ player/swfdec_debug_movies.h |
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
This includes two kernel patches, scsi-target and IO_CMD_EPOLL_WAIT. The former is a modified version of the scsi target infrastructure in mainline. The latter enables applications to handle AIO and non-AIO fds in the same loop. blktap uses the different patch, AIO event queue patch for the same aim. The IO_CMD_EPOLL_WAIT patch will be merged into mainline (and the AIO event queue will not) so
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
libswfdec/swfdec_as_context.c | 45 +++++++++++++++++++++++++- libswfdec/swfdec_as_frame.c | 14 ++++---- libswfdec/swfdec_as_frame_internal.h | 3 + libswfdec/swfdec_as_interpret.c | 22 ++++++++---- libswfdec/swfdec_as_object.c | 26 ++++++++++----- libswfdec/swfdec_as_object.h | 11 +++++-
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
Makefile.am | 10 configure.ac | 51 +- doc/Makefile.am | 16 doc/swfdec-docs.sgml | 7 doc/swfdec-sections.txt | 53 ++ doc/swfdec.types | 2 libswfdec-gtk/.gitignore | 14 libswfdec-gtk/Makefile.am | 40 + libswfdec-gtk/swfdec-gtk.h
2017 Jun 09
1
[ANNOUNCE] intel-gpu-tools 1.19
A new intel-gpu-tools quarterly release is available with the following changes: Library changes: - Changed debugfs handlers to open files for the DRM device in use, for setups with more than one DRM device. (Tomeu Vizoso) - Added support for 4K and audio HDMI EDID injection. (Abdiel Janulgue, Marius Vlad) - Added support for AMDGPU devices. (Chris Wilson) Tools changes: -
2007 Jul 27
0
11 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie_as.c test/trace
libswfdec/swfdec_as_strings.c | 7 + libswfdec/swfdec_asbroadcaster.c | 10 + libswfdec/swfdec_initialize.as | 1 libswfdec/swfdec_initialize.h | 8 - libswfdec/swfdec_net_stream.c | 10 + libswfdec/swfdec_player.c
2009 Nov 13
0
Wine release 1.1.33
The Wine development release 1.1.33 is now available. What's new in this release (see below for details): - Gecko now installed at wineprefix creation time. - Better support for certificates in crypt32. - Improved sound support in mciwave. - Some more Direct3D 10 functions. - Many cleanups for issues spotted by Valgrind. - Various bug fixes. The source is available from the