Sha256: b42cb0466d5e070d92016a39391f22e6e1e1927b83ee7738da1812a795e2483b

Contents?: true

Size: 388 Bytes

Versions: 12

Compression:

Stored size: 388 Bytes

Contents

initializer('accessible_attributes.rb') do
<<-'FILE'
class ActiveRecord::Base
  attr_accessible
  attr_accessor :accessible

  private

  def mass_assignment_authorizer
    if accessible == :all
      self.class.protected_attributes
    else
      super + (accessible || [])
    end
  end
end
FILE
end

initializer('haml.rb') do
<<-'FILE'
Haml::Template.options[:format] = :html5
FILE
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
gypsum-0.9.1 templates/default/lib/initializers.rb
gypsum-0.9.0 templates/default/lib/initializers.rb
gypsum-0.8.0 templates/default/lib/initializers.rb
prologue-0.6.0 templates/default/lib/initializers.rb
prologue-0.5.5 templates/initializers.rb
prologue-0.5.0 templates/initializers.rb
prologue-0.4.0 templates/initializers.rb
prologue-0.3.11 templates/initializers.rb
prologue-0.3.10 templates/initializers.rb
prologue-0.3.9 templates/initializers.rb
prologue-0.3.7 templates/initializers.rb
prologue-0.3.6 templates/initializers.rb