Michael Pavling wrote in post #1052592: > On 21 March 2012 02:45, <[email protected]> wrote: >> For a project I used the gem 'event_calendar'. However, there were a >> couple things I had to manually change within the gem source to suit my >> needs. >> >> How would I go about to deploy this in production 'the rails way'? > > A few choices: > > * Vendorize it > * Package your own gem from the altered code > * Monkey-patch the gem in your lib folder > > There's probably more options.
Thanks for all the replies. I decided to go with vendorizing the gem, since the changes were so application specific I did not want to deploy the modified gem apart from the application. Running into the following problem now though. Whenever I load the model that uses some of the gem functionality, I get this error: NoMethodError: undefined method `has_event_calendar' for #<Class:0x45e2308> The line in the gemfile reads: gem 'event-calendar', :require => 'event_calendar', :path => 'vendor/gems/event-calendar-2.3.3' When I go into the console, I do seem to have access to the gem's namespace (for example, EventCalendar module is known) What am I doing wrong? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

