search for: included_modul

Displaying 10 results from an estimated 10 matches for "included_modul".

Did you mean: include_module
2011 Apr 08
5
How to extend a helper using plugin?
Hello, I''m facing this problem while trying to extend the parse_redmine_links helper method in Redmine-1.1.0 (Rails-2.3.5) from my plugin. My idea is to use alias_method_chain so the extended version could call the original version and adjust the result to it''s liking. Anything I''ve tried so far exposes this behavior: the first render of a page uses the extended
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2008 Mar 12
12
Mongrel has crashed
Hi, my mongrel has crashed with following errors in the logfile: ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.3 available at 0.0.0.0:3000 **
2006 Dec 06
0
Testing your workers
.../lib/workers/market_summary_worker" require "#{RAILS_ROOT}/vendor/plugins/backgroundrb/lib/backgroundrb.rb" require ''drb'' class MarketSummaryWorkerTest < Test::Unit::TestCase # Replace this with your real tests. def test_truth assert MarketSummaryWorker.included_modules.include?(DRbUndumped) end end Throws error: ------------ /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'': uninitialized constant Worker (NameError) from /home/hemant/ubac_webfront/config/../lib/workers/market_summary_wo...
2006 Sep 04
2
"include" versus "extend" - what's the difference
...me</tt> # that returns the user that is performing the action. This defaults to # <tt>:current_user</tt>. # # == Database Schema # def acts_as_audited(options = {}) # don''t allow multiple calls return if self.included_modules.include?(CollectiveIdea::Acts::Audited::InstanceMethods) include CollectiveIdea::Acts::Audited::InstanceMethods class_eval do extend CollectiveIdea::Acts::Audited::SingletonMethods cattr_accessor :non_audited_columns, :audited_user_class_name, :audited_u...
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Apr 05
9
Is eval the only way?
Hi, I''m trying to write some methods which use a parameter to represent a Class name. A very simplistic example: def foo(class_name, conditions) x = class_name.find(:all, :conditions => "#{conditions}") end Unfortunately, this does not work. The only way around this problem that I can think of is to use eval: def foo(class_name, conditions) x = eval
2006 Mar 10
0
WEBrick crashing
...rofiler__.start_profile 36.80 4.81 1.01 873 1.16 2.00 Array#include? 27.35 5.56 0.75 3966 0.19 0.19 Module#== 21.64 6.16 0.60 1 595.00 2000.00 ObjectSpace.each_object 5.71 6.31 0.16 865 0.18 0.18 Module#included_modules 5.13 6.45 0.14 1 141.00 2688.00 Module#included_in_classes 1.13 6.48 0.03 99 0.31 0.31 Kernel.send 0.58 6.50 0.02 5 3.20 3.20 Array#+ 0.58 6.52 0.02 8 2.00 2.00 Array#collect 0.55 6.5...
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in a kind of hell where I can''t get my app working! Currently running (or trying to run): Ruby version 1.8.4 (i386-mswin32) RubyGems version 0.8.11 Rails version 1.0.0 Active Record version 1.13.2 Action Pack version 1.11.2 Action Web Service version 1.0.0 Action Mailer version 1.1.5 Active Support version
2006 May 23
11
putting the schema in the model files
THE SCHEMA IN THE MODEL a small write up on ''putting the schema in the model'' This is a write up on an issue best covered in a mailing list thread of Januari 2006 (see the links in the text), I repost it because I think it deserves a place on the agenda. == Why? == I was switching back and forward between the model files and the schema.rb -- off course I have