class ActsAsViewableGenerator

Public Instance Methods

create_migration_file() click to toggle source
# File lib/generators/acts_as_viewable_generator.rb, line 4
def create_migration_file
  migration_template 'view_migration.rb', 'db/migrate/acts_as_viewable_migration.rb'
end
create_model() click to toggle source
# File lib/generators/acts_as_viewable_generator.rb, line 8
def create_model
  template "view.rb", File.join('app/models', "view.rb")
end