Refactored rake task into a class

 - Added dumper class and moved all the logic into that class.
 - fixtures_path method is not present in Rails 3 and requires Active
   Record's 'config_load' task to be run. So removed using it in
   fixtures_path method.
Oh yes. That's right. Need to change it to normal hash.
On Nov 16, 2014 9:10 PM, "Vipul A M" <notifications@github.com> wrote:

> In lib/fixtures_dumper/dumper.rb:
>
> > @@ -0,0 +1,102 @@
> > +require 'active_record'
> > +
> > +module FixturesDumper
> > +  class Dumper
> > +
> > +    DEFAULT_EXCLUDED_TABLES = %w(schema_migrations delayed_jobs)
> > +
> > +    def initialize(user_excluded_tables: nil, table_name: nil)
>
> @prathamesh-sonpatki <https://github.com/prathamesh-sonpatki> I guess I
> mentioned this, but using this would mean we support only rubies with
> keyword arguments.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bigbinary/fixtures_dumper/pull/5/files#r20410410>.
>