similar to: ActiveSupport::Concern support Module#prepend?

Displaying 20 results from an estimated 500 matches similar to: "ActiveSupport::Concern support Module#prepend?"

2012 Sep 28
0
Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern
I have: module MySpike extend ActiveSupport::Concern included do class_attribute :foobar, instance_writer: true end end But, I want to be able to override the class attribute writer and/or instance writer method to do something when the attribute is set via self.foobar = true before or after calling super to set the attribute. Unfortunately, I can''t find a clean way
2012 Sep 20
2
append_features(mod)
append_features(mod) The documentation says: When this module is included in another, Ruby calls append_features in this module, passing it the receiving module in mod. Ruby’s default implementation is to add the constants, methods, and module variables of this module to mod if this module has not already been added to mod or one of its ancestors. See also Module#include. What if this module is
2011 May 31
0
How do you test a module that extends ActiveSupport::Concern?
I have a module that extends ActiveSupport::Concern. Here is the `included` block: included do after_save :save_tags has_many :taggings, :as => :taggable has_many :tags, :through => :taggings end How can I stub out these calls? I have tried a few ways, but Ruby complains that these methods don''t exist when I try and test the module in isolation. Thanks!
2013 Sep 18
2
Accessing model attributes in ActiveSupport::Concern module
I have some models which share the same functionality just on other paths. So I decided to put these methods in a module and set the path in the model. My problem is that I''m not able to access the attribute in my module. my model: class Job < ActiveRecord::Base include ImageModel image_dir = "jobs"end my module: module ImageModel extend ActiveSupport::Concern
2012 Dec 01
6
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
Working on Rails Engine. I want to make the controllers customizable whereever the Rails Engine is used. Therefore, I was trying to use `extend ActiveSupport::Concern` on the Engine controller class and include it in MyRailsApp. https://gist.github.com/4185823 # code in my rails engine moduel MyEngine class SomeController extend ActiveSupport::Concern def engine_some_method
2008 Sep 08
2
Restful Authentication and State Machine state transfer question
I''m adding some code to a project using restful_authentication and acts_as_statemachine In the create method for a user there is the following code generated by the restful_authentication template @user.regster! if user.valid? And this will save and the user record if it is valid. I understand that the statemachine will then change the state from passive to pending. It will guard
2006 Mar 15
0
Prepend string to output URLs
Is it possible to prepend a string to all output URLs? I am looking for something like the relative_url_root that only does it job when generating the resulting html and not when analysing the request. (If some developer wants more information on why I want this do not hesitate to mail me, I think I found a problem with a specific Rails setup.)
2015 Feb 13
0
Re: [PATCH] ./run: Use 'prepend' function to build paths.
On Friday 13 February 2015 10:16:34 Richard W.M. Jones wrote: > Add a bash function 'prepend' for intelligently prepending elements to > paths. eg: > > prepend PYTHONPATH "/foo" > > would set PYTHONPATH to "/foo" or "/foo:<previous-contents-of-PYTHONPATH>" > > Tested by: > > (1) Building and testing libguestfs twice:
2005 Jun 14
0
Digit Map for IP500 - prepend digits from phone
via google, I found the reference regarding digit maps for the Polycom phones: http://lists.digium.com/pipermail/asterisk-users/2005-January/082884.html But, I don't see how to "prepend" a digit(s) to a number dialed (from the phone, not in an Asterisk extensions file). For instance, I have several trunks. Each trunk can be manually dialed by dialing a specific number in front
2013 Apr 11
0
Voicemail Prepend not working properly on 1.8.18
Hi, I have a problem with forwarding a voicemail and prepending a message to it. If a user just forwards a voicemail, everything works fine. However, if a user prepends a message to the voicemail when forwarding, the voicemail that is forwarded only contains the prepended message and not the original voicemail message. Also, I continue to have voicemails and recordings that are recording the
2013 Aug 20
0
Voicemail Prepend Message Forwarding Not Working
Hi All, First I've heard of this feature not working from a customer. I did some digging and this is a common bug in several older Asterisk versions, it has more than a few patches in the bug tracker. I've tried a few of them but none will apply to a specific version I'm currently running for a customer, 1.6.0.28. Does anyone have a patch file that will apply to this version or an
2013 Aug 20
0
Voicemail Prepend Message Forwarding Not Working [SOLVED]
> > Hi All, > > First I've heard of this feature not working from a customer. I did some > digging and this is a common bug in several older Asterisk versions, it has > more than a few patches in the bug tracker. I've tried a few of them but > none will apply to a specific version I'm currently running for a customer, > 1.6.0.28. > > Does anyone have a
2013 Aug 27
2
Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?
Hi All, I''m looking to prepend a string to all (RHEL based) PE3 console URLs. I''m trying to proxy the console thru an Oracle web server (Apache under the hood), and for security we need to make all URLs easily identifiable as having originated from Puppet in the web log files. A PCI requirement I believe. So, the question is how to change https://console.puppet.net into
2010 Jan 31
3
Append/Prepend to a template from controller method
I want a method in app/controllers/application.rb that can prepend/append text to whatever template gets rendered. Of course I can''t call render twice w/o getting a double render error, so is this possible? I want to redirect after a delay using a meta refresh. Here''s what I''ve got: app/controllers/application_controller.rb: def redirect_after_delay (url, delay)
2006 Feb 11
5
[OT] How to prepend copyright notices to each source file
Sorry for the off-topic post, but I guess someone else may hit the same issue.... Having developed a rails application, I now need to put GPL text and a copyright notice at the start of each source file. For the .rb files, this will look like: # Copyright 2006 Robert Jones........... and for the .rhtml files it will look like: <!-- Copyright 2006 Robert Jones......... Can anyone think of
2013 Jun 05
4
agent prepend every line with var
How would I prepend every log line output with a [var] when I run: var=<myvar> puppet agent -t -o -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to
2012 Jan 10
1
[PATCH] Prepend local library path to LD_LIBRARY_PATH for tests, instead of replacing it
Overwriting LD_LIBRARY_PATH broke some tests when running with fakeroot. --- align/Makefile.am | 2 +- cat/Makefile.am | 2 +- clone/Makefile.am | 2 +- df/Makefile.am | 2 +- edit/Makefile.am | 2 +- fish/Makefile.am | 2 +- haskell/Makefile.am | 2 +- ocaml/Makefile.am |
2007 Jan 08
2
ActiveSupport Dependency
Hi, Just wondering if ActiveSupport is actually used heavily by Camping when ActiveRecord is not used? I see ActiveSupport is a dependency of ActiveRecord, but Camping still wants it even when ActiveRecord isn''t used.
2006 Jul 30
0
Rails installation problem - activesupport
I am trying to install Ruby on Rails on my G5 PowerPC, I followed <a href="http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger">these</a> instructions. Everything seems to be working fine until i try to install Rails with Rubygems, then I get the following error-message: <blockquote>Install required dependency activesupport? [Yn] y ERROR:
2006 Apr 10
0
Plugins & ActiveSupport::CoreExtensions
Is it possible to add to ActiveSupport''s CoreExtension module via a plugin? The only way I''ve been able to do this is to add my extensions to a library stored in the lib folder. Thanks. -- DeLynn Berry delynn@gmail.com http://www.delynnberry.com