Sha256: 6ae34524ebf77ab760723d8cbbad413f4a951cd73360c3e5d16cbb848a779760

Contents?: true

Size: 329 Bytes

Versions: 22

Compression:

Stored size: 329 Bytes

Contents

module Pageflow
  module Generators
    class UserGenerator < Rails::Generators::Base
      desc "Injects the Pageflow::User mixin into the User class."

      def include_mixin
        inject_into_file 'app/models/user.rb', before: /end$/ do
          "\n  include Pageflow::UserMixin\n"
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
pageflow-0.10.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.9.2 lib/generators/pageflow/user/user_generator.rb
pageflow-0.9.1 lib/generators/pageflow/user/user_generator.rb
pageflow-0.9.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.8.2 lib/generators/pageflow/user/user_generator.rb
pageflow-0.8.1 lib/generators/pageflow/user/user_generator.rb
pageflow-0.8.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.7.2 lib/generators/pageflow/user/user_generator.rb
pageflow-0.7.1 lib/generators/pageflow/user/user_generator.rb
pageflow-0.7.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.6.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.5.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.4.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.3.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.2.1 lib/generators/pageflow/user/user_generator.rb
pageflow-0.2.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.1.0 lib/generators/pageflow/user/user_generator.rb
pageflow-0.0.5 lib/generators/pageflow/user/user_generator.rb
pageflow-0.0.4 lib/generators/pageflow/user/user_generator.rb
pageflow-0.0.3 lib/generators/pageflow/user/user_generator.rb