Hey guys, I'm working on a plugin to log what users are doing in the admin. However, I want to be able to specify that in not work in certain environments (ie. development env for testing or when using console when there is no user) by setting this in the environment.rb:
Plugin.log_environment = 'development' And this method is in the plugin: def self.log_environment=(env) end The question is, what should be in that method to make sure that the plugin doesn't actually fire the method that saves the log? Is this even the best way to do this? Thanks, Josh --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
