Sha256: 8346c35bad52feb9a7b82ed9f8061b9733672ce3e7172dee288efdd901df0e03

Contents?: true

Size: 213 Bytes

Versions: 3

Compression:

Stored size: 213 Bytes

Contents

module Coalla
  module Cms
    module Utils
      module Scaffold
        def cms_select_name(klass)
          (([:title, :name, :caption] & klass.new.methods) << :id).first
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coalla-cms-0.7.0.0 lib/generators/coalla/cms/utils/scaffold.rb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/utils/scaffold.rb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/utils/scaffold.rb